mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-06 20:43:46 +08:00
e4f3d6661c
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>
11 lines
387 B
Python
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))
|