Skip to content

Commit

Permalink
System: Bug fix on AEB logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sidi762 committed Aug 16, 2021
1 parent 730d782 commit ccbbae7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Nasal/systems.nas
Original file line number Diff line number Diff line change
Expand Up @@ -708,8 +708,7 @@ var Safety = {

reset: func(){
#resetting stops the safety system
me.safetySystemTimer.stop();
if(me.aebEnabled) me.disableAEB();;#//disable AEB
me.stop();
me.frontAirbagProp.setValue(0);
me.sideAirbagProp.setValue(0);
me.aebStateProp.setValue(0);
Expand All @@ -728,7 +727,7 @@ var Safety = {
stop: func(){
me.isOn = 0;
me.aebStateProp.setValue(0);
me.disableAEB();
if(me.aebEnabled) me.disableAEB();
me.safetySystemTimer.stop();
print("Safety system stoped");
},
Expand Down

0 comments on commit ccbbae7

Please sign in to comment.