Files
StarPilot/openpilot/starpilot/longitudinal/output_max.py
T
firestar5683 e4f3d6661c Longitudinal
Implement acceleration profiles, FollowJerk, force-stop and lead-departure owners. Keep selected acceleration limits and hazard arbitration explicit at their shared boundaries.

Co-authored-by: whoisdomi <dcantu83@gmail.com>
2026-10-14 20:02:39 -05:00

11 lines
387 B
Python

"""Fixed shared ceiling for the final longitudinal control output."""
# Retained identifier only for refusing obsolete edits and preserving saved bytes.
KEY = "LongitudinalMaxOutputAcceleration"
DEFAULT = 4.0
def final_output(acceleration: float) -> float:
"""Cap the returned command without changing controller state or lower limits."""
return float(min(acceleration, DEFAULT))