mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
CARLA: save calibration params as capnp (#21144)
This commit is contained in:
+4
-3
@@ -368,9 +368,10 @@ if __name__ == "__main__":
|
||||
# make sure params are in a good state
|
||||
set_params_enabled()
|
||||
|
||||
params = Params()
|
||||
params.delete("Offroad_ConnectivityNeeded")
|
||||
params.put("CalibrationParams", '{"calib_radians": [0,0,0], "valid_blocks": 20}')
|
||||
msg = messaging.new_message('liveCalibration')
|
||||
msg.liveCalibration.validBlocks = 20
|
||||
msg.liveCalibration.rpyCalib = [0.0, 0.0, 0.0]
|
||||
Params().put("CalibrationParams", msg.to_bytes())
|
||||
|
||||
from multiprocessing import Process, Queue
|
||||
q: Any = Queue()
|
||||
|
||||
Reference in New Issue
Block a user