mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 05:52:06 +08:00
dd778596b7
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
15 lines
459 B
Python
15 lines
459 B
Python
from cereal import messaging
|
|
|
|
|
|
def generate_livePose():
|
|
msg = messaging.new_message('livePose')
|
|
meas = {'x': 0.0, 'y': 0.0, 'z': 0.0, 'xStd': 0.0, 'yStd': 0.0, 'zStd': 0.0, 'valid': True}
|
|
msg.livePose.orientationNED = meas
|
|
msg.livePose.velocityDevice = meas
|
|
msg.livePose.angularVelocityDevice = meas
|
|
msg.livePose.accelerationDevice = meas
|
|
msg.livePose.inputsOK = True
|
|
msg.livePose.posenetOK = True
|
|
msg.livePose.sensorsOK = True
|
|
return msg
|