Systems: commented out the service station for now; changed the AEB warning sound

This commit is contained in:
Sidi Liang 2020-08-10 19:38:45 +08:00
parent e733d69772
commit 865a4bc730
No known key found for this signature in database
GPG Key ID: 79F0A6B20B72F42F
1 changed files with 7 additions and 5 deletions

View File

@ -552,7 +552,9 @@ var Safety = {
#engine.engine_1.engineSwitch.switchDisconnect();
me.throttleNode.setValue(0);
brakeController.activeEmergencyBrake();
playAudio("parking_radar_init.wav");
playAudio("parking_radar_high.wav");
playAudio("parking_radar_high.wav");
playAudio("parking_radar_high.wav");
me.aebStateProp.setValue(1);
print("AEB Activated!");
},
@ -660,10 +662,10 @@ var brakeWithABS = func(){ #//Doesn't seems to work because it seems that jsbsim
}
#//Service Staion
var stationPath = getprop("sim/aircraft-dir")~'/Models/Service-Station/Service-Staion.ac';
var stationCoord = geo.aircraft_position();
var stationCourse = getprop("/orientation/heading-deg");
stationCoord.apply_course_distance(stationCourse, 100); # Model to be added 100 m ahead
#var stationPath = getprop("sim/aircraft-dir")~'/Models/Service-Station/Service-Staion.ac';
#var stationCoord = geo.aircraft_position();
#var stationCourse = getprop("/orientation/heading-deg");
#stationCoord.apply_course_distance(stationCourse, 100); # Model to be added 100 m ahead
#//var model = geo.put_model(stationPath, stationCoord, stationCourse); # Place the default glider