From a4f120d2be19c99560264cbfcffd424e74cd690e Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Tue, 19 May 2020 18:13:11 -0700 Subject: [PATCH] Rename enum old-commit-hash: f69f2001788ed9057b907113b74e258a69ecad6d --- selfdrive/locationd/paramsd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/locationd/paramsd.py b/selfdrive/locationd/paramsd.py index c994eced7b..29d7c73f39 100755 --- a/selfdrive/locationd/paramsd.py +++ b/selfdrive/locationd/paramsd.py @@ -11,7 +11,7 @@ from selfdrive.locationd.models.car_kf import CarKalman, ObservationKind, States from selfdrive.locationd.models.constants import GENERATED_DIR from selfdrive.swaglog import cloudlog -FixStatus = log.LiveLocationKalman.Status +KalmanStatus = log.LiveLocationKalman.Status CARSTATE_DECIMATION = 5 @@ -43,7 +43,7 @@ class ParamsLearner: yaw_rate_std = msg.angularVelocityCalibrated.std[2] if self.active: - if msg.inputsOK and msg.posenetOK and msg.status == FixStatus.valid: + if msg.inputsOK and msg.posenetOK and msg.status == KalmanStatus.valid: self.kf.predict_and_observe(t, ObservationKind.ROAD_FRAME_YAW_RATE, np.array([[[-yaw_rate]]]),