mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 09:03:55 +08:00
* Pose calibrator * Fix static analysis * Fix static * Fix test_latcontrol * Fix test_latcontrol * Update services in process replay * Fix static * Matmul not mul * Add assertion * Move pose calibration to data_sample * Update ref commit * Remove llk from cycle alerts * Deprecated nogps event * Switch power_draw to lp * Bring back noGps alert * Add handling code back * get_bool * Bring inputsok back
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
|