Update car_kf.py

old-commit-hash: a3071bf15b27907fe28e054b64ad45cdab38c25f
This commit is contained in:
HaraldSchafer
2021-06-18 17:57:42 -07:00
committed by GitHub
parent abffb4db29
commit eff53180ca
+3
View File
@@ -87,6 +87,9 @@ class CarKalman(KalmanFilter):
def generate_code(generated_dir):
dim_state = CarKalman.initial_x.shape[0]
name = CarKalman.name
# vehicle models comes from The Science of Vehicle Dynamics: Handling, Braking, and Ride of Road and Race Cars
# Model used is in 6.15 with formula from 6.198
# globals
global_vars = [sp.Symbol(name) for name in CarKalman.global_vars]