@@ -167,11 +167,10 @@ DEFAULT_PGM_POWER_RATING EQU 2 ; 1=1S,2=2S+
167167DEFAULT_PGM_BRAKE_ON_STOP EQU 0 ; 1=Enabled 0=Disabled
168168DEFAULT_PGM_LED_CONTROL EQU 0 ; Byte for LED control. 2 bits per LED,0=Off,1=On
169169
170- DEFAULT_PGM_STARTUP_POWER_MIN EQU 51 ; 0..255 => (1000..1125 Throttle): value * (1000 / 2047) + 1000
170+ DEFAULT_PGM_STARTUP_POWER_MIN EQU 21 ; 0..255 => (1000..1125 Throttle): value * (1000 / 2047) + 1000
171171DEFAULT_PGM_STARTUP_BEEP EQU 1 ; 0=Short beep,1=Melody
172- DEFAULT_PGM_DITHERING EQU 0 ; 0=Disabled,1=Enabled
173172
174- DEFAULT_PGM_STARTUP_POWER_MAX EQU 25 ; 0..255 => (1000..2000 Throttle): Maximum startup power
173+ DEFAULT_PGM_STARTUP_POWER_MAX EQU 5 ; 0..255 => (1000..2000 Throttle): Maximum startup power
175174DEFAULT_PGM_BRAKING_STRENGTH EQU 255 ; 0..255 => 0..100 % Braking
176175
177176DEFAULT_PGM_SAFETY_ARM EQU 0 ; EDT safety arm is disabled by default
@@ -225,9 +224,8 @@ Flags2: DS 1 ; State flags. NOT reset upon motor_star
225224
226225Flags3: DS 1 ; State flags. NOT reset upon motor_start
227226 Flag_Telemetry_Pending BIT Flags3. 0 ; DShot telemetry data packet is ready to be sent
228- Flag_Dithering BIT Flags3. 1 ; PWM dithering enabled
229- Flag_Had_Signal BIT Flags3. 2 ; Used to detect reset after having had a valid signal
230- Flag_User_Reverse_Requested BIT Flags3. 3 ; It is set when user request to reverse motors in turtle mode
227+ Flag_Had_Signal BIT Flags3. 1 ; Used to detect reset after having had a valid signal
228+ Flag_User_Reverse_Requested BIT Flags3. 2 ; It is set when user request to reverse motors in turtle mode
231229
232230
233231Tlm_Data_L: DS 1 ; DShot telemetry data (lo byte)
@@ -302,7 +300,7 @@ ISEG AT 080h ; The variables below must be in this se
302300_Pgm_Gov_P_Gain: DS 1 ;
303301Pgm_Startup_Power_Min: DS 1 ; Minimum power during startup phase
304302Pgm_Startup_Beep: DS 1 ; Startup beep melody on/off
305- Pgm_Dithering : DS 1 ; Enable PWM dithering
303+ _Pgm_Dithering : DS 1 ; Enable PWM dithering
306304Pgm_Startup_Power_Max: DS 1 ; Maximum power (limit) during startup (and starting initial run phase)
307305_Pgm_Rampup_Slope: DS 1 ;
308306Pgm_Rpm_Power_Slope: DS 1 ; Low RPM power protection slope (factor)
@@ -343,9 +341,6 @@ Pgm_Safety_Arm: DS 1 ; Various flag settings: bit 0 is requir
343341ISEG AT 0B0h
344342Stack: DS 16 ; Reserved stack space
345343
346- ISEG AT 0C0h
347- Dithering_Patterns: DS 16 ; Bit patterns for pwm dithering
348-
349344ISEG AT 0D0h
350345Temp_Storage: DS 48 ; Temporary storage (internal memory)
351346
@@ -355,8 +350,8 @@ Temp_Storage: DS 48 ; Temporary storage (internal memory)
355350;**** **** **** **** **** **** **** **** **** **** **** **** ****
356351CSEG AT CSEG_EEPROM
357352EEPROM_FW_MAIN_REVISION EQU 0 ; Main revision of the firmware
358- EEPROM_FW_SUB_REVISION EQU 20 ; Sub revision of the firmware
359- EEPROM_LAYOUT_REVISION EQU 207 ; Revision of the EEPROM layout
353+ EEPROM_FW_SUB_REVISION EQU 21 ; Sub revision of the firmware
354+ EEPROM_LAYOUT_REVISION EQU 208 ; Revision of the EEPROM layout
360355EEPROM_B2_PARAMETERS_COUNT EQU 28 ; Number of parameters
361356
362357Eep_FW_Main_Revision: DB EEPROM_FW_MAIN_REVISION ; EEPROM firmware main revision number
@@ -365,7 +360,7 @@ Eep_Layout_Revision: DB EEPROM_LAYOUT_REVISION ; EEPROM layout revision number
365360_Eep_Pgm_Gov_P_Gain: DB 0FFh
366361Eep_Pgm_Startup_Power_Min: DB DEFAULT_PGM_STARTUP_POWER_MIN
367362Eep_Pgm_Startup_Beep: DB DEFAULT_PGM_STARTUP_BEEP
368- Eep_Pgm_Dithering : DB DEFAULT_PGM_DITHERING
363+ _Eep_Pgm_Dithering : DB 0FFh
369364Eep_Pgm_Startup_Power_Max: DB DEFAULT_PGM_STARTUP_POWER_MAX
370365_Eep_Pgm_Rampup_Slope: DB 0FFh
371366Eep_Pgm_Rpm_Power_Slope: DB DEFAULT_PGM_RPM_POWER_SLOPE ; EEPROM copy of programmed rpm power slope (formerly startup power)
@@ -406,7 +401,7 @@ Eep_Pgm_Safety_Arm: DB DEFAULT_PGM_SAFETY_ARM ; Various flag settings: bit 0 is
406401
407402Eep_Dummy: DB 0FFh ; EEPROM address for safety reason
408403CSEG AT CSEG_NAME
409- Eep_Name: DB "Bluejay (.1 RC2 )" ; Name tag (16 Bytes)
404+ Eep_Name: DB "Bluejay (.0 RC1 )" ; Name tag (16 Bytes)
410405
411406CSEG AT CSEG_MELODY
412407Eep_Pgm_Beep_Melody: DB 2 , 58 , 4 , 32 , 52 , 66 , 13 , 0 , 69 , 45 , 13 , 0 , 52 , 66 , 13 , 0 , 78 , 39 , 211 , 0 , 69 , 45 , 208 , 25 , 52 , 25 , 0
@@ -1046,7 +1041,6 @@ exit_run_mode:
10461041 call switch_power_off
10471042 mov Flags0 , # 0 ; Clear run time flags (in case they are used in interrupts)
10481043 mov Flags1 , # 0
1049- clr Flag_Ext_Tele ; Clear extended DSHOT telemetry flag
10501044
10511045IF MCU_TYPE == MCU_BB2 or MCU_TYPE == MCU_BB51
10521046 Set_MCU_Clk_24MHz
0 commit comments