mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-12 03:03:51 +08:00
Controls - Lateral Tuning - Steer Ratio
Use a custom steer ratio as opposed to comma's auto tune value.
This commit is contained in:
@@ -133,6 +133,11 @@ def main():
|
||||
CP = msg
|
||||
cloudlog.info("paramsd got CarParams")
|
||||
|
||||
steer_ratio_stock = params_reader.get_float("SteerRatioStock")
|
||||
if steer_ratio_stock != CP.steerRatio:
|
||||
params_reader.put_float_nonblocking("SteerRatio", CP.steerRatio)
|
||||
params_reader.put_float_nonblocking("SteerRatioStock", CP.steerRatio)
|
||||
|
||||
min_sr, max_sr = 0.5 * CP.steerRatio, 2.0 * CP.steerRatio
|
||||
|
||||
params = params_reader.get("LiveParameters")
|
||||
|
||||
Reference in New Issue
Block a user