Skip to content

Commit

Permalink
Dynamic pwm threshold defaults set to the correct values
Browse files Browse the repository at this point in the history
  • Loading branch information
damosvil committed Dec 19, 2023
1 parent 092d90f commit 59f0257
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Modules/Isrs.asm
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ t1_int_max_braking_set_24khz:
subb A, Pwm_Braking24_L
mov A, Temp5
subb A, Pwm_Braking24_H ; Is braking pwm more than maximum allowed braking?
jc t1_int_set_pwm_24khz ; Yes - branch
jc t1_int_set_pwm_24khz ; Yes - branch

mov Temp4, Pwm_Braking24_L ; No - set desired braking instead
mov Temp5, Pwm_Braking24_H
Expand Down
4 changes: 2 additions & 2 deletions src/Settings/BluejaySettings.asm
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ DEFAULT_PGM_STARTUP_POWER_MAX EQU 5 ; 0..255 => (1000..2000 Throttle): Maxim
DEFAULT_PGM_BRAKING_STRENGTH EQU 255 ; 0..255 => 0..100 % Braking

DEFAULT_PGM_SAFETY_ARM EQU 0 ; EDT safety arm is disabled by default
DEFAULT_96to48_THRESHOLD EQU 85 ; About 33% threshold to change between 96 and 48khz
DEFAULT_48to24_THRESHOLD EQU 170 ; About 66% threshold to change between 48 and 24khz
DEFAULT_48to24_THRESHOLD EQU 85 ; About 33% threshold to change between 48 and 24khz
DEFAULT_96to48_THRESHOLD EQU 170 ; About 66% threshold to change between 96 and 48khz

0 comments on commit 59f0257

Please sign in to comment.