mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-30 19:33:42 +08:00
auto-detect pigeon or quectel (#25991)
* auto-detect pigeon or quectel * persistent * fix sim * fix process replay * fix locationd unit tests * fix that Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
+5
-2
@@ -244,11 +244,13 @@ class CarlaBridge:
|
||||
def __init__(self, arguments):
|
||||
set_params_enabled()
|
||||
|
||||
self.params = Params()
|
||||
|
||||
msg = messaging.new_message('liveCalibration')
|
||||
msg.liveCalibration.validBlocks = 20
|
||||
msg.liveCalibration.rpyCalib = [0.0, 0.0, 0.0]
|
||||
Params().put("CalibrationParams", msg.to_bytes())
|
||||
Params().put_bool("WideCameraOnly", not arguments.dual_camera)
|
||||
self.params.put("CalibrationParams", msg.to_bytes())
|
||||
self.params.put_bool("WideCameraOnly", not arguments.dual_camera)
|
||||
|
||||
self._args = arguments
|
||||
self._carla_objects = []
|
||||
@@ -363,6 +365,7 @@ class CarlaBridge:
|
||||
gps_bp = blueprint_library.find('sensor.other.gnss')
|
||||
gps = world.spawn_actor(gps_bp, transform, attach_to=vehicle)
|
||||
gps.listen(lambda gps: gps_callback(gps, vehicle_state))
|
||||
self.params.put_bool("UbloxAvailable", True)
|
||||
|
||||
self._carla_objects.extend([imu, gps])
|
||||
# launch fake car threads
|
||||
|
||||
Reference in New Issue
Block a user