-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly
31 lines (31 loc) · 942 Bytes
/
fly
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
openDataServer 5400 10
enterc
connect 127.0.0.1 5402
enterc
var breaks = bind "/controls/flight/speedbrake"
var throttle = bind "/controls/engines/current-engine/throttle"
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"
while rpm <= 750 {
sleep 1000
}
sleep 5000
var h0 = heading
breaks = 0
throttle = 1
while alt < 1000 {
rudder = (h0 - heading)/80
aileron = -roll / 70
elevator = pitch / 50
print alt
sleep 250
}
print "done"
enterc