-
Notifications
You must be signed in to change notification settings - Fork 0
/
flight_instructions.txt
58 lines (58 loc) · 1.68 KB
/
flight_instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
openDataServer 5400 10
connect "127.0.0.1" 5402
var warp = bind "/sim/time/warp"
var magnetos = bind "/controls/switches/magnetos"
var throttle = bind "/controls/engines/current-engine/throttle"
var mixture = bind "/controls/engines/current-engine/mixture"
var masterbat = bind "/controls/switches/master-bat"
var masterlat = bind "/controls/switches/master-alt"
var masteravionics = bind "/controls/switches/master-avionics"
var brakeparking = bind "/sim/model/c172p/brake-parking"
var primer = bind "/controls/engines/engine/primer"
var starter = bind "/controls/switches/starter"
var autostart = bind "/engines/active-engine/auto-start"
var breaks = bind "/controls/flight/speedbrake"
var heading = bind "/instrumentation/heading-indicator/offset-deg"
var airspeed = bind "/instrumentation/airspeed-indicator/indicated-speed-kt"
var roll = bind "/instrumentation/attitude-indicator/indicated-roll-deg"
var pitch = bind "/instrumentation/attitude-indicator/internal-pitch-deg"
var rudder = bind "/controls/flight/rudder"
var aileron = bind "/controls/flight/aileron"
var elevator = bind "/controls/flight/elevator"
var alt = bind "/instrumentation/altimeter/indicated-altitude-ft"
var rpm = bind "/engines/engine/rpm"
sleep 45000
print "let's start"
sleep 1000
magnetos = 3
throttle = 0.2
mixture = 0.949
masterbat = 1
masterlat = 1
masteravionics = 1
brakeparking = 0
primer = 3
starter = 1
autostart = 1
print "engine is warming..."
print rpm
rpm = 800
sleep 250
while rpm < 750 {
print rpm
sleep 250
}
print "let's fly"
var h0 = heading
print h0
breaks = 0
sleep 10000
throttle = 1
while alt < 2000 {
rudder = (h0 - heading)/20
aileron = - roll / 70
elevator = pitch/50
print alt
sleep 250
}
print "done"