pull/34806/head
Shane Smiskol 2 months ago
parent 8e836ee276
commit 71e608a9ea
  1. 2
      selfdrive/locationd/locationd.py
  2. 2
      selfdrive/locationd/paramsd.py

@ -147,13 +147,13 @@ class LocationEstimator:
self.car_speed = abs(msg.vEgo) self.car_speed = abs(msg.vEgo)
elif which == "liveCalibration": elif which == "liveCalibration":
# Note that we use this message during calibration
if len(msg.rpyCalib) > 0: if len(msg.rpyCalib) > 0:
calib = np.array(msg.rpyCalib) calib = np.array(msg.rpyCalib)
if calib.min() < -CALIB_RPY_SANITY_CHECK or calib.max() > CALIB_RPY_SANITY_CHECK: if calib.min() < -CALIB_RPY_SANITY_CHECK or calib.max() > CALIB_RPY_SANITY_CHECK:
return HandleLogResult.INPUT_INVALID return HandleLogResult.INPUT_INVALID
self.device_from_calib = rot_from_euler(calib) self.device_from_calib = rot_from_euler(calib)
self.calibrated = msg.calStatus == log.LiveCalibrationData.Status.calibrated
elif which == "cameraOdometry": elif which == "cameraOdometry":
if not self._validate_timestamp(t): if not self._validate_timestamp(t):

@ -73,7 +73,7 @@ class ParamsLearner:
if self.active: if self.active:
if msg.posenetOK: if msg.posenetOK:
# Note that we update the filter with pre-calibrated yaw rates, this is to bound the yaw rate estimate
if yaw_rate_valid: if yaw_rate_valid:
self.kf.predict_and_observe(t, self.kf.predict_and_observe(t,
ObservationKind.ROAD_FRAME_YAW_RATE, ObservationKind.ROAD_FRAME_YAW_RATE,

Loading…
Cancel
Save