12 lines
411 B
Python
12 lines
411 B
Python
# app/simulation/modules/abs.py
|
|
from __future__ import annotations
|
|
from ..vehicle import Vehicle, Module
|
|
|
|
class AbsModule(Module):
|
|
"""Stub: deceleration limiting if ABS enabled (future: needs braking input)."""
|
|
def apply(self, v: Vehicle, dt: float) -> None:
|
|
_abs = bool(v.config.get("vehicle", {}).get("abs", True))
|
|
if not _abs:
|
|
return
|
|
# braking model folgt später
|