Refactor model generation condition in modeld.py

Fixed the conditional statement checking the model generation and custom model status in modeld.py. Now, the navigation features and instructions are only updated if a custom model is being used and the model generation is not 4.
This commit is contained in:
DevTekVE
2024-05-18 18:50:32 +02:00
parent 136fecf86b
commit 422773bb9f
+1 -1
View File
@@ -133,7 +133,7 @@ class ModelState:
self.inputs['traffic_convention'][:] = inputs['traffic_convention']
if not (self.custom_model and self.model_gen == 1):
self.inputs['lateral_control_params'][:] = inputs['lateral_control_params']
if not (self.custom_model and self.model_gen == 4):
if self.custom_model and self.model_gen != 4:
self.inputs['nav_features'][:] = inputs['nav_features']
self.inputs['nav_instructions'][:] = inputs['nav_instructions']