mirror of https://github.com/commaai/rednose.git
make linter happy
This commit is contained in:
parent
6e2de5dcb0
commit
e50846d845
|
@ -4,12 +4,18 @@ from rednose.helpers.ekf_sym import EKF_sym
|
|||
|
||||
|
||||
class KalmanFilter:
|
||||
name = None
|
||||
initial_x = None
|
||||
initial_P_diag = None
|
||||
Q = None
|
||||
obs_noise = None
|
||||
|
||||
def __init__(self, generated_dir):
|
||||
self.dim_state = self.initial_x.shape[0]
|
||||
self.dim_state_err = self.initial_P_diag.shape[0]
|
||||
dim_state = self.initial_x.shape[0]
|
||||
dim_state_err = self.initial_P_diag.shape[0]
|
||||
|
||||
# init filter
|
||||
self.filter = EKF_sym(generated_dir, self.name, self.Q, self.initial_x, np.diag(self.initial_P_diag), self.dim_state, self.dim_state_err)
|
||||
self.filter = EKF_sym(generated_dir, self.name, self.Q, self.initial_x, np.diag(self.initial_P_diag), dim_state, dim_state_err)
|
||||
|
||||
@property
|
||||
def x(self):
|
||||
|
|
Loading…
Reference in New Issue