Skip to content

Commit

Permalink
fix: Update telemetry timings
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Jan 28, 2021
1 parent 3d30c6c commit 98ae2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ STARTUP_POWER_TABLE: DB 1, 2, 3, 4, 6, 9, 12, 18, 25, 37, 50, 62, 75

DSHOT_TLM_CLOCK EQU 24500000 ; 24.5MHz
DSHOT_TLM_START_DELAY EQU -(5 * 25 / 4) ; Start telemetry after 5 us (~30 us after receiving DShot cmd)
DSHOT_TLM_PREDELAY EQU 6 ; 6 timer 0 ticks inherent delay
DSHOT_TLM_PREDELAY EQU 7 ; 7 timer 0 ticks inherent delay

IF MCU_48MHZ == 1
DSHOT_TLM_CLOCK_48 EQU 49000000 ; 49MHz
DSHOT_TLM_START_DELAY_48 EQU -(16 * 49 / 4) ; Start telemetry after 16 us (~30 us after receiving DShot cmd)
DSHOT_TLM_PREDELAY_48 EQU 8 ; 8 timer 0 ticks inherent delay
DSHOT_TLM_PREDELAY_48 EQU 11 ; 11 timer 0 ticks inherent delay
ENDIF

Set_DShot_Tlm_Bitrate MACRO rate
Expand Down

0 comments on commit 98ae2d5

Please sign in to comment.