mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-10 23:42:06 +08:00
Give car interface roll and pitch (#22891)
* Give car interface roll and pitch * fixup * whitespace
This commit is contained in:
+1
-1
Submodule cereal updated: c2761bdbd8...82603c57a9
@@ -570,6 +570,10 @@ class Controls:
|
||||
CC.active = self.active
|
||||
CC.actuators = actuators
|
||||
|
||||
if len(self.sm['liveLocationKalman'].orientationNED.value) > 2:
|
||||
CC.roll = self.sm['liveLocationKalman'].orientationNED.value[0]
|
||||
CC.pitch = self.sm['liveLocationKalman'].orientationNED.value[1]
|
||||
|
||||
CC.cruiseControl.cancel = CS.cruiseState.enabled and (not self.enabled or not self.CP.pcmCruise)
|
||||
if self.joystick_mode and self.sm.rcv_frame['testJoystick'] > 0 and self.sm['testJoystick'].buttons[0]:
|
||||
CC.cruiseControl.cancel = True
|
||||
|
||||
@@ -1 +1 @@
|
||||
d2b1507589f05d0600fc19ec2570d831fe210ad5
|
||||
5703f591ce18bb3aebf67c0594220485f8cb3f79
|
||||
Reference in New Issue
Block a user