make linter happy

This commit is contained in:
Willem Melching 2020-05-15 15:36:30 -07:00
parent 6e2de5dcb0
commit e50846d845
1 changed files with 9 additions and 3 deletions

View File

@ -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):