CARLA: save calibration params as capnp (#21144)

pull/21123/head
siggie0815 2021-06-05 01:05:05 +02:00 committed by GitHub
parent 7d8480cffe
commit c798c5f027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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()