use rounded constant instead of hard-coded value for incrementing set speed (#32992)

* use rounded constant instead of hard-coded value for incrementing set speed

* better comment
This commit is contained in:
Greg Hogan 2024-07-16 18:24:01 -07:00 committed by GitHub
parent aa8484093e
commit 4b794773b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ V_CRUISE_MAX = 145
V_CRUISE_UNSET = 255
V_CRUISE_INITIAL = 40
V_CRUISE_INITIAL_EXPERIMENTAL_MODE = 105
IMPERIAL_INCREMENT = 1.6 # should be CV.MPH_TO_KPH, but this causes rounding errors
IMPERIAL_INCREMENT = round(CV.MPH_TO_KPH, 1) # round here to avoid rounding errors incrementing set speed
MIN_SPEED = 1.0
CONTROL_N = 17