|
|
|
@ -48,9 +48,12 @@ class CarController: |
|
|
|
|
can_sends = [] |
|
|
|
|
|
|
|
|
|
# Steering (Active: 50Hz, inactive: 10Hz) |
|
|
|
|
# Attempt to sync with camera on startup at 50Hz, first few msgs are blocked |
|
|
|
|
# Attempt to sync with camera on startup at 25Hz, first few msgs are blocked |
|
|
|
|
if not self.sent_lka_steering_cmd: |
|
|
|
|
steer_step = self.params.STARTUP_STEER_STEP |
|
|
|
|
elif not CC.latActive: |
|
|
|
|
steer_step = self.params.INACTIVE_STEER_STEP |
|
|
|
|
if CC.latActive or not self.sent_lka_steering_cmd: |
|
|
|
|
else: |
|
|
|
|
steer_step = self.params.ACTIVE_STEER_STEP |
|
|
|
|
|
|
|
|
|
# Avoid GM EPS faults when transmitting messages too close together: skip this transmit if we just received the |
|
|
|
|