Merge pull request #7 from WEIHAOLEE/master

Sync
This commit is contained in:
Marsdolphin 2020-04-03 15:52:01 +08:00 committed by GitHub
commit 0b905d0ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 99353 additions and 91816 deletions

185
Models/Interior/Instruments/Starter/starter.ac Normal file → Executable file
View File

@ -1,58 +1,59 @@
AC3Db
MATERIAL "mat_1" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 1 1 1 shi 10 trans 0
MATERIAL "mat_1" rgb 1 1 1 amb 1 1 1 emis 0.309804 0.309804 0.309804 spec 0 0 0 shi 94.9895 trans 0
OBJECT world
kids 2
OBJECT poly
name "base"
loc 0.000906013 4.80213e-010 0.000616602
loc 0.000906013 4.80213e-10 0.000616602
texture "light_gray.png"
crease 100.000000
numvert 50
0.0017322 -3.68163e-010 1.97906e-009
-0.0017322 -3.68163e-010 2.15368e-009
0.0017322 -9.97242e-009 -0.0138327
0.0017322 -3.68163e-10 1.97906e-09
-0.0017322 -3.68163e-10 2.15368e-09
0.0017322 -9.97242e-09 -0.0138327
0.0017322 -0.00358018 -0.0133614
0.0017322 -0.00691636 -0.0119794
0.0017322 -0.0097812 -0.0097812
0.0017322 -0.0119794 -0.00691635
0.0017322 -0.0133614 -0.00358016
0.0017322 -0.0138327 6.0536e-009
0.0017322 -0.0138327 6.0536e-09
0.0017322 -0.0133614 0.00358017
0.0017322 -0.0119794 0.00691636
0.0017322 -0.00978119 0.0097812
0.0017322 -0.00691635 0.0119794
0.0017322 -0.00358016 0.0133614
0.0017322 4.498e-009 0.0138327
0.0017322 4.498e-09 0.0138327
0.0017322 0.00358017 0.0133614
0.0017322 0.00691636 0.0119794
0.0017322 0.0097812 0.0097812
0.0017322 0.0119794 0.00691635
0.0017322 0.0133614 0.00358017
0.0017322 0.0138327 -5.82077e-011
0.0017322 0.0138327 -5.82077e-11
0.0017322 0.0133614 -0.00358017
0.0017322 0.0119794 -0.00691635
0.0017322 0.0097812 -0.0097812
0.0017322 0.00691635 -0.0119794
0.0017322 0.00358017 -0.0133614
-0.0017322 -9.97242e-009 -0.0138327
-0.0017322 -9.97242e-09 -0.0138327
-0.0017322 -0.00358018 -0.0133614
-0.0017322 -0.00691636 -0.0119794
-0.0017322 -0.0097812 -0.0097812
-0.0017322 -0.0119794 -0.00691635
-0.0017322 -0.0133614 -0.00358016
-0.0017322 -0.0138327 6.22822e-009
-0.0017322 -0.0138327 6.22822e-09
-0.0017322 -0.0133614 0.00358017
-0.0017322 -0.0119794 0.00691636
-0.0017322 -0.00978119 0.0097812
-0.0017322 -0.00691635 0.0119794
-0.0017322 -0.00358016 0.0133614
-0.0017322 4.498e-009 0.0138327
-0.0017322 4.498e-09 0.0138327
-0.0017322 0.00358017 0.0133614
-0.0017322 0.00691636 0.0119794
-0.0017322 0.0097812 0.0097812
-0.0017322 0.0119794 0.00691635
-0.0017322 0.0133614 0.00358017
-0.0017322 0.0138327 1.16415e-010
-0.0017322 0.0138327 1.16415e-10
-0.0017322 0.0133614 -0.00358017
-0.0017322 0.0119794 -0.00691635
-0.0017322 0.0097812 -0.0097812
@ -60,456 +61,456 @@ numvert 50
-0.0017322 0.00358017 -0.0133614
numsurf 72
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
2 0 0
25 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
3 0 0
2 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
4 0 0
3 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
5 0 0
4 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
6 0 0
5 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
7 0 0
6 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
8 0 0
7 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
9 0 0
8 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
10 0 0
9 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
11 0 0
10 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
12 0 0
11 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
13 0 0
12 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
14 0 0
13 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
15 0 0
14 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
16 0 0
15 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
17 0 0
16 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
18 0 0
17 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
19 0 0
18 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
20 0 0
19 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
21 0 0
20 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
22 0 0
21 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
23 0 0
22 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
24 0 0
23 0 0
SURF 0x10
mat 0
mat 1
refs 3
0 0 0
25 0 0
24 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
49 0 0
26 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
26 0 0
27 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
27 0 0
28 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
28 0 0
29 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
29 0 0
30 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
30 0 0
31 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
31 0 0
32 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
32 0 0
33 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
33 0 0
34 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
34 0 0
35 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
35 0 0
36 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
36 0 0
37 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
37 0 0
38 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
38 0 0
39 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
39 0 0
40 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
40 0 0
41 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
41 0 0
42 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
42 0 0
43 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
43 0 0
44 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
44 0 0
45 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
45 0 0
46 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
46 0 0
47 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
47 0 0
48 0 0
SURF 0x10
mat 0
mat 1
refs 3
1 0 0
48 0 0
49 0 0
SURF 0x10
mat 0
mat 1
refs 4
49 0 1
25 0 0
2 0.0416667 0
26 0.0416667 1
SURF 0x10
mat 0
mat 1
refs 4
26 0.0416667 1
2 0.0416667 0
3 0.0833333 0
27 0.0833333 1
SURF 0x10
mat 0
mat 1
refs 4
27 0.0833333 1
3 0.0833333 0
4 0.125 0
28 0.125 1
SURF 0x10
mat 0
mat 1
refs 4
28 0.125 1
4 0.125 0
5 0.166667 0
29 0.166667 1
SURF 0x10
mat 0
mat 1
refs 4
29 0.166667 1
5 0.166667 0
6 0.208333 0
30 0.208333 1
SURF 0x10
mat 0
mat 1
refs 4
30 0.208333 1
6 0.208333 0
7 0.25 0
31 0.25 1
SURF 0x10
mat 0
mat 1
refs 4
31 0.25 1
7 0.25 0
8 0.291667 0
32 0.291667 1
SURF 0x10
mat 0
mat 1
refs 4
32 0.291667 1
8 0.291667 0
9 0.333333 0
33 0.333333 1
SURF 0x10
mat 0
mat 1
refs 4
33 0.333333 1
9 0.333333 0
10 0.375 0
34 0.375 1
SURF 0x10
mat 0
mat 1
refs 4
34 0.375 1
10 0.375 0
11 0.416667 0
35 0.416667 1
SURF 0x10
mat 0
mat 1
refs 4
35 0.416667 1
11 0.416667 0
12 0.458333 0
36 0.458333 1
SURF 0x10
mat 0
mat 1
refs 4
36 0.458333 1
12 0.458333 0
13 0.5 0
37 0.5 1
SURF 0x10
mat 0
mat 1
refs 4
37 0.5 1
13 0.5 0
14 0.541667 0
38 0.541667 1
SURF 0x10
mat 0
mat 1
refs 4
38 0.541667 1
14 0.541667 0
15 0.583333 0
39 0.583333 1
SURF 0x10
mat 0
mat 1
refs 4
39 0.583333 1
15 0.583333 0
16 0.625 0
40 0.625 1
SURF 0x10
mat 0
mat 1
refs 4
40 0.625 1
16 0.625 0
17 0.666667 0
41 0.666667 1
SURF 0x10
mat 0
mat 1
refs 4
41 0.666667 1
17 0.666667 0
18 0.708333 0
42 0.708333 1
SURF 0x10
mat 0
mat 1
refs 4
42 0.708333 1
18 0.708333 0
19 0.75 0
43 0.75 1
SURF 0x10
mat 0
mat 1
refs 4
43 0.75 1
19 0.75 0
20 0.791667 0
44 0.791667 1
SURF 0x10
mat 0
mat 1
refs 4
44 0.791667 1
20 0.791667 0
21 0.833333 0
45 0.833333 1
SURF 0x10
mat 0
mat 1
refs 4
45 0.833333 1
21 0.833333 0
22 0.875 0
46 0.875 1
SURF 0x10
mat 0
mat 1
refs 4
46 0.875 1
22 0.875 0
23 0.916667 0
47 0.916667 1
SURF 0x10
mat 0
mat 1
refs 4
47 0.916667 1
23 0.916667 0
24 0.958333 0
48 0.958333 1
SURF 0x10
mat 0
mat 1
refs 4
48 0.958333 1
24 0.958333 0
@ -518,7 +519,7 @@ refs 4
kids 0
OBJECT poly
name "button"
loc 0.00125503 1.44681e-006 0.000623429
loc 0.00125503 1.44681e-06 0.000623429
texture "gray.png"
crease 100.000000
numvert 50
@ -533,19 +534,19 @@ numvert 50
-0.00153842 0.00880186 0.00880545
-0.00153842 0.00622386 0.0107844
-0.00153842 0.00322171 0.0120285
-0.00153842 3.95812e-009 0.0124528
-0.00153842 3.95812e-09 0.0124528
-0.00153842 -0.0032217 0.0120285
-0.00153842 -0.00622386 0.0107844
-0.00153842 -0.00880186 0.00880545
-0.00153842 -0.01078 0.0062264
-0.00153842 -0.0120236 0.00322302
-0.00153842 -0.0124477 5.58794e-009
-0.00153842 -0.0124477 5.58794e-09
-0.00153842 -0.0120236 -0.00322301
-0.00153842 -0.01078 -0.0062264
-0.00153842 -0.00880186 -0.00880545
-0.00153842 -0.00622386 -0.0107844
-0.00153842 -0.00322171 -0.0120285
-0.00153842 -9.0804e-009 -0.0124528
-0.00153842 -9.0804e-09 -0.0124528
0.00153842 0.00322171 -0.0120285
0.00153842 0.00622386 -0.0107844
0.00153842 0.00880186 -0.00880545
@ -557,21 +558,21 @@ numvert 50
0.00153842 0.00880186 0.00880545
0.00153842 0.00622386 0.0107844
0.00153842 0.00322171 0.0120285
0.00153842 3.95812e-009 0.0124528
0.00153842 3.95812e-09 0.0124528
0.00153842 -0.0032217 0.0120285
0.00153842 -0.00622386 0.0107844
0.00153842 -0.00880186 0.00880545
0.00153842 -0.01078 0.0062264
0.00153842 -0.0120236 0.00322302
0.00153842 -0.0124477 5.58794e-009
0.00153842 -0.0124477 5.58794e-09
0.00153842 -0.0120236 -0.00322301
0.00153842 -0.01078 -0.0062264
0.00153842 -0.00880186 -0.00880545
0.00153842 -0.00622386 -0.0107844
0.00153842 -0.00322171 -0.0120285
0.00153842 -9.0804e-009 -0.0124528
-0.00153842 -4.65661e-010 1.86265e-009
0.00153842 -4.65661e-010 1.62981e-009
0.00153842 -9.0804e-09 -0.0124528
-0.00153842 -4.65661e-10 1.86265e-09
0.00153842 -4.65661e-10 1.62981e-09
numsurf 72
SURF 0x10
mat 0

File diff suppressed because it is too large Load Diff

2372
Models/Interior/Instruments/fuelgauge/Concept/fuelgauge.ac Normal file → Executable file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,31 @@
<PropertyList>
<path>airbugs.ac</path>
<animation>
<type>select</type>
<object-name>main_airbug_l</object-name>
<object-name>main_airbug_r</object-name>
<object-name>knee_airbag_l</object-name>
<object-name>knee_airbag_r</object-name>
<condition>
<equals>
<property>/systems/safety/airbag/front</property>
<value>1</value>
</equals>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>side_airbug_l</object-name>
<object-name>side_airbug_r</object-name>
<object-name>curtain_airbag_l</object-name>
<object-name>curtain_airbag_r</object-name>
<condition>
<equals>
<property>/systems/safety/airbag/side</property>
<value>1</value>
</equals>
</condition>
</animation>
</PropertyList>

3670
Models/Interior/airbugs.ac Normal file

File diff suppressed because it is too large Load Diff

98324
Models/Interior/sport/interior.ac Normal file → Executable file

File diff suppressed because it is too large Load Diff

82279
Models/followme.ac Normal file → Executable file

File diff suppressed because it is too large Load Diff

View File

@ -18,6 +18,11 @@
<path>Aircraft/followme_e-tron/Sounds/followme-sound.xml</path>
</sound>
<!-- Airbag -->
<model>
<path>Aircraft/followme_e-tron/Models/Interior/airbags.xml</path>
</model>
<!-- Interior -->
<model>
<condition>
@ -105,15 +110,15 @@
<model>
<condition>
<equals>
<property>sim/multiplay/generic/bool[1]</property>
<property>sim/multiplay/generic/int[12]</property>
<value>1</value>
</equals>
</condition>
<path>Aircraft/followme_e-tron/Models/people/people2.ac</path>
<offsets>
<x-m> 1.71</x-m>
<y-m> -0.2</y-m>
<z-m> 0.8</z-m>
<x-m> 1.9</x-m>
<y-m> 0</y-m>
<z-m> 1.255</z-m>
</offsets>
</model>
@ -630,6 +635,9 @@
<animation>
<type>pick</type>
<object-name>ldoor</object-name>
<object-name>lmirror</object-name>
<object-name>indicater_ldoor</object-name>
<object-name>ldoor_inside</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
@ -643,6 +651,10 @@
<animation>
<type>rotate</type>
<object-name>ldoor</object-name>
<object-name>lmirror</object-name>
<object-name>indicater_ldoor</object-name>
<object-name>lbose</object-name>
<object-name>ldoor_inside</object-name>
<property>sim/multiplay/generic/float[3]</property>
<factor>-75</factor>
<center>
@ -662,6 +674,9 @@
<animation>
<type>pick</type>
<object-name>rdoor</object-name>
<object-name>rmirror</object-name>
<object-name>indicater_rdoor</object-name>
<object-name>rdoor_inside</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
@ -675,6 +690,10 @@
<animation>
<type>rotate</type>
<object-name>rdoor</object-name>
<object-name>rmirror</object-name>
<object-name>indicater_rdoor</object-name>
<object-name>rbose</object-name>
<object-name>rdoor_inside</object-name>
<property>sim/multiplay/generic/float[2]</property>
<factor>75</factor>
<center>
@ -807,6 +826,17 @@
</emission>
</animation>
<animation>
<type>material</type>
<object-name>indicater_ldoor</object-name>
<emission>
<red>1.0</red>
<green>0.8</green>
<blue>0.2</blue>
<factor-prop>sim/multiplay/generic/int[0]</factor-prop>
</emission>
</animation>
<animation>
<type>material</type>
<object-name>indicater_right</object-name>
@ -829,6 +859,17 @@
</emission>
</animation>
<animation>
<type>material</type>
<object-name>indicater_rdoor</object-name>
<emission>
<red>1.0</red>
<green>0.8</green>
<blue>0.2</blue>
<factor-prop>sim/multiplay/generic/int[0]</factor-prop>
</emission>
</animation>
<animation>
<type>material</type>
<object-name>braking_lights</object-name>

BIN
Models/ldoorcontrol.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
Models/rdoorcontrol.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
Models/renault-lights.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

View File

@ -57,7 +57,18 @@ var Sound = {
return m;
},
};
var window = screen.window.new(10, 10, 3, 10);
var outputUI = func(content, timeout = 10){
window.autoscroll = timeout;
timeNow = systime();
if(content != getprop("/systems/outputUIContent") or (timeNow - timeout) >= getprop("/systems/lastOutputUITime")){
window.write(content);
setprop("/systems/outputUIContent",content);
setprop("/systems/lastOutputUITime",systime());
#print("Outputed");
}
}
var playAudio = func(file){ #//Plays audio files in Aircrafts/Sounds
fgcommand("play-audio-sample", Sound.new(filename: file, volume: 1, path: props.getNode("/",1).getValue("sim/aircraft-dir") ~ '/Sounds'));
}
@ -346,6 +357,29 @@ var toggleHandBrake = func(){
}
var runCode = func(url, addition = nil){
#var params = {url:"http://fgprc.org:11415/", targetnode:"/systems/code", complete: completed};
http.save(url~addition, getprop('/sim/fg-home') ~ '/cache/code.xml').done(func(r){
var blob = io.read_properties(getprop('/sim/fg-home') ~ '/cache/code.xml');
var filename = "/cache/code.xml";
var script = blob.getValues().code; # Get the nasal string
var code = call(func {
compile(script, filename);
}, nil, nil, var compilation_errors = []);
if(size(compilation_errors)){
die("Error compiling code in: " ~ filename);
}
call(code, [], nil, nil, var runtime_errors = []);
if(size(runtime_errors)){
die("Error calling code compiled loaded from: " ~ filename);
}
var path = os.path.new(getprop('/sim/fg-home') ~ '/cache/code.xml');
path.remove();
print("Code loaded");
});
}
var chargeBatterySec = func(){
#//var battery = props.getNode("/systems/electrical/e-tron/battery-kWs");
#//var currentBattery = battery.getValue();
@ -420,8 +454,71 @@ var calculateSpeed = func(){
var calculateSpeedTimer = maketimer(0.1, calculateSpeed);
var resetOnPosition = func(){
var latProp = props.getNode("/position/latitude-deg");
var lonProp = props.getNode("/position/longitude-deg");
var lat = latProp.getValue();
var lon = lonProp.getValue();
setprop("/fdm/jsbsim/simulation/pause", 1);
setprop("/fdm/jsbsim/simulation/reset", 1);
var groundAlt = props.getNode("/position/ground-elev-ft").getValue();
props.getNode("/position/altitude-ft").setValue(groundAlt+5);
latProp.setValue(lat);
lonProp.setValue(lon);
setprop("/fdm/jsbsim/simulation/pause", 0);
}
var Safety = {
new: func(airbagAccelerationLimit=72){
return {parents: [Safety], airbagAccelerationLimit:airbagAccelerationLimit};
},
isOn: 0,
safetySystemTimer: nil,
updateInterval: 0.01,
accXProp: props.getNode("/fdm/jsbsim/accelerations/a-pilot-x-ft_sec2", 1),
accYProp: props.getNode("/fdm/jsbsim/accelerations/a-pilot-y-ft_sec2", 1),
frontAirbagProp: props.getNode("/systems/safety/airbag/front", 1),
sideAirbagProp: props.getNode("/systems/safety/airbag/side", 1),
airbagAccelerationLimit: 72, #To be configured,m/s^2
update: func(){
#print("running");
#Front airbag
if(math.abs(me.accXProp.getValue() * FT2M) > me.airbagAccelerationLimit){
#active Front
me.frontAirbagProp.setValue(1);
me.safetySystemTimer.stop();
}
#side airbag
if(math.abs(me.accYProp.getValue() * FT2M) > me.airbagAccelerationLimit){
#active side
me.sideAirbagProp.setValue(1);
me.safetySystemTimer.stop();
}
},
reset: func(){
me.frontAirbagProp.setValue(0);
me.frontAirbagProp.setValue(0);
},
init: func(){
me.frontAirbagProp.setValue(0);
me.sideAirbagProp.setValue(0);
if(me.safetySystemTimer == nil) me.safetySystemTimer = maketimer(me.updateInterval, func me.update());
me.safetySystemTimer.start();
me.isOn = 1;
print("Safety system initialized");
},
stop: func(){
me.isOn = 0;
me.safetySystemTimer.stop();
print("Safety system stoped");
},
toggle: func(){
if(!me.isOn) me.init();
else me.stop();
},
};
var safety = Safety.new();
safety.init();
var brakesABS = func(){
var gearFrtLftSpeed = math.round(props.getNode("/",1).getValue("/fdm/jsbsim/gear/unit/wheel-speed-fps"));
var gearFrtRgtSpeed = math.round(props.getNode("/",1).getValue("/fdm/jsbsim/gear/unit[1]/wheel-speed-fps"));

View File

@ -869,12 +869,12 @@
<file>Aircraft/followme_e-tron/Nasal/auto_speed.nas</file>
</autospeed>
<cdu>
<file>Aircraft/followme_e-tron/Models/Instruments/CDU/boeing.nas</file>
<file>Aircraft/followme_e-tron/Models/Instruments/CDU/library.nas</file>
<file>Aircraft/followme_e-tron/Models/Instruments/CDU/functions.nas</file>
<file>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/boeing.nas</file>
<file>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/library.nas</file>
<file>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/functions.nas</file>
</cdu>
<datalink>
<file>Aircraft/followme_e-tron/Models/Instruments/CDU/datalink.nas</file>
<file>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/datalink.nas</file>
</datalink>
<!--<musicplayer>
<file>Aircraft/followme_e-tron/MusicPlayer/musicplayer.nas</file>

View File

@ -121,6 +121,29 @@
</group>
</group>
<group>
<layout>vbox</layout>
<button>
<halign>left</halign>
<legend>Toggle Parking Radar</legend>
<pref-width>120</pref-width>
<pref-height>28</pref-height>
<binding>
<command>nasal</command>
<script>followme.parkingRadar.toggle()</script>
</binding>
</button>
<button>
<halign>left</halign>
<legend>Toggle Airbag</legend>
<pref-width>120</pref-width>
<pref-height>28</pref-height>
<binding>
<command>nasal</command>
<script>followme.safety.toggle()</script>
</binding>
</button>
</group>
<group>
<layout>vbox</layout>
<text><label>Plate</label></text>

View File

@ -286,67 +286,101 @@
</button>
<hrule/>
<group>
<layout>hbox</layout>
<layout>vbox</layout>
<text>
<label>Rescue</label>
</text>
<button>
<halign>right</halign>
<legend>Flip Vehicle</legend>
<pref-width>120</pref-width>
<pref-height>28</pref-height>
<enable>
<and>
<group>
<layout>hbox</layout>
<button>
<halign>left</halign>
<legend>Flip Vehicle</legend>
<pref-width>120</pref-width>
<pref-height>28</pref-height>
<enable>
<and>
<not>
<property>/sim/freeze/replay-state</property>
</not>
<!--<less-than>
<property>velocities/groundspeed-kt</property>
<value>1.0</value>
</less-than>-->
</and>
</enable>
<binding>
<command>property-assign</command>
<property>/orientation/roll-deg</property>
<value>0</value>
</binding>
<binding>
<command>property-assign</command>
<property>velocities/groundspeed-kt</property>
<value>0</value>
</binding>
</button>
<button>
<halign>left</halign>
<legend>Quick Recharge</legend>
<pref-width>120</pref-width>
<pref-height>28</pref-height>
<enable>
<and>
<not>
<property>/sim/freeze/replay-state</property>
</not>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>1.0</value>
</less-than>
<not>
<property>/controls/engines/engine/started</property>
</not>
</and>
</enable>
<binding>
<command>nasal</command>
<script>followme.circuit_1.parallelConnection[0].units[0].resetRemainingToFull()</script>
</binding>
</button>
</group>
<group>
<button>
<halign>left</halign>
<legend>Reset Airbag</legend>
<pref-width>120</pref-width>
<pref-height>28</pref-height>
<enable>
<not>
<property>/sim/freeze/replay-state</property>
</not>
<!--<less-than>
<property>velocities/groundspeed-kt</property>
<value>1.0</value>
</less-than>-->
</and>
</enable>
<binding>
<command>property-assign</command>
<property>/orientation/roll-deg</property>
<value>0</value>
</binding>
<binding>
<command>property-assign</command>
<property>velocities/groundspeed-kt</property>
<value>0</value>
</binding>
</button>
</enable>
<binding>
<command>nasal</command>
<script>followme.safety.reset();</script>
</binding>
</button>
<button>
<halign>right</halign>
<legend>Quick Recharge</legend>
<pref-width>120</pref-width>
<pref-height>28</pref-height>
<enable>
<and>
<button>
<halign>left</halign>
<legend>Reset Here</legend>
<pref-width>120</pref-width>
<pref-height>28</pref-height>
<enable>
<not>
<property>/sim/freeze/replay-state</property>
</not>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>1.0</value>
</less-than>
<not>
<property>/controls/engines/engine/started</property>
</not>
</and>
</enable>
<binding>
<command>nasal</command>
<script>followme.circuit_1.parallelConnection[0].units[0].resetRemainingToFull()</script>
</binding>
</button>
</enable>
<binding>
<command>nasal</command>
<script>followme.resetOnPosition();</script>
</binding>
</button>
</group>
</group>
<hrule/>
<group>
<layout>hbox</layout>