Skip to content

Commit

Permalink
Update xmit antenna when resending schedule packets
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Nov 10, 2023
1 parent 30efe61 commit 90a7d97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions software/firmware/src/tasks/ranging/schedule_phase.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ scheduler_phase_t schedule_phase_tx_complete(void)
next_action_timestamp += SCHEDULE_RESEND_INTERVAL_US;
while ((++schedule_packet.sequence_number < SCHEDULE_NUM_MASTER_BROADCASTS) && is_master_scheduler)
{
ranging_radio_choose_antenna(schedule_packet.sequence_number % NUM_XMIT_ANTENNAS);
if (schedule_packet.sequence_number == 1)
{
reference_time = ranging_radio_readtxtimestamp() & 0xFFFFFFFE00UL;
Expand Down

0 comments on commit 90a7d97

Please sign in to comment.