|
|
@ -130,6 +130,7 @@ class Car: |
|
|
|
def controls_update(self, CS: car.CarState, CC: car.CarControl): |
|
|
|
def controls_update(self, CS: car.CarState, CC: car.CarControl): |
|
|
|
"""control update loop, driven by carControl""" |
|
|
|
"""control update loop, driven by carControl""" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self.sm.all_checks(['carControl']): |
|
|
|
# send car controls over can |
|
|
|
# send car controls over can |
|
|
|
now_nanos = self.can_log_mono_time if REPLAY else int(time.monotonic() * 1e9) |
|
|
|
now_nanos = self.can_log_mono_time if REPLAY else int(time.monotonic() * 1e9) |
|
|
|
# TODO: CC shouldn't be builder |
|
|
|
# TODO: CC shouldn't be builder |
|
|
|