From 2d69a5a335e58f34298c9a5f22074668f3ea734c Mon Sep 17 00:00:00 2001 From: Harald Schafer Date: Mon, 10 Feb 2020 15:38:15 -0800 Subject: [PATCH] fix imports old-commit-hash: 59728ebca6276fa8756b1123e403d856914bba08 --- selfdrive/locationd/kalman/live_kf.py | 2 +- selfdrive/locationd/locationd.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/locationd/kalman/live_kf.py b/selfdrive/locationd/kalman/live_kf.py index d18a4b0896..73476fa5ae 100755 --- a/selfdrive/locationd/kalman/live_kf.py +++ b/selfdrive/locationd/kalman/live_kf.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 import numpy as np -from live_model import gen_model, States +from .live_model import gen_model, States from .kalman_helpers import ObservationKind from .ekf_sym import EKF_sym diff --git a/selfdrive/locationd/locationd.py b/selfdrive/locationd/locationd.py index a5620e4dfc..239ed29435 100755 --- a/selfdrive/locationd/locationd.py +++ b/selfdrive/locationd/locationd.py @@ -8,7 +8,7 @@ from selfdrive.swaglog import cloudlog from common.transformations.orientation import rotations_from_quats, ecef_euler_from_ned, euler2quat, ned_euler_from_ecef, quat2euler import common.transformations.coordinates as coord -from selfdrive.locationd.kalman.live_kf import LiveKalman, States, inital_x, initial_P_diag +from selfdrive.locationd.kalman.live_kf import LiveKalman, States, initial_x, initial_P_diag from selfdrive.locationd.kalman.kalman_helpers import ObservationKind os.environ["OMP_NUM_THREADS"] = "1" @@ -69,7 +69,7 @@ class Localizer(): quat_uncertainty = 0.2**2 initial_pose_ecef_quat = euler2quat(initial_pose_ecef) - initial_state = inital_x + initial_state = initial_x initial_covs_diag = initial_P_diag initial_state[States.ECEF_POS] = initial_ecef