Skip to content

Commit

Permalink
fix: Do not reset telemetry flag on motor start
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Jan 5, 2021
1 parent 3fe9ad1 commit c54412c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Flags1: DS 1 ; State flags. Reset upon init_start
Flag_Timer3_Pending BIT Flags1.0 ; Timer 3 pending flag
Flag_Demag_Detected BIT Flags1.1 ; Set when excessive demag time is detected
Flag_Comp_Timed_Out BIT Flags1.2 ; Set when comparator reading timed out
Flag_Packet_Pending BIT Flags1.3 ; DShot telemetry data packet is ready to be sent
; BIT Flags1.3
Flag_Motor_Started BIT Flags1.4 ; Set when motor is started
Flag_Dir_Change_Brake BIT Flags1.5 ; Set when braking before direction change
Flag_High_Rpm BIT Flags1.6 ; Set when motor rpm is high (Comm_Period4x_H less than 2)
Expand All @@ -173,6 +173,9 @@ Flag_Rcp_Stop BIT Flags2.5 ; Set if the RC pulse value is zero
Flag_Rcp_Dir_Rev BIT Flags2.6 ; RC pulse direction in bidirectional mode
Flag_Rcp_DShot_Inverted BIT Flags2.7 ; DShot RC pulse input is inverted (and supports telemetry)

Flags3: DS 1 ; State flags. NOT reset upon init_start
Flag_Packet_Pending BIT Flags3.0 ; DShot telemetry data packet is ready to be sent

Tlm_Data_L: DS 1 ; DShot telemetry data (lo byte)
Tlm_Data_H: DS 1 ; DShot telemetry data (hi byte)
Tmp_B: DS 1
Expand Down

0 comments on commit c54412c

Please sign in to comment.