LP-500 HoTT Telemetry added device definitions
[librepilot.git] / flight / modules / FlightPlan / flightplans / test.py
bloba786732971d5027f09d30d81848ec8e3de27d111
1 import sys
2 #mb = sys.heap()
3 #mb = mb[0]
4 import openpilot
5 #ma = sys.heap()
6 #ma = ma[0]
7 #print('import openpilot')
8 #print(mb-ma)
9 #mb = sys.heap()
10 #mb = mb[0]
11 import flightplanstatus
12 #ma = sys.heap()
13 #ma = ma[0]
14 #print('import flightplanstatus')
15 #print(mb-ma)
16 #mb = sys.heap()
17 #mb = mb[0]
18 import mixersettings
19 #ma = sys.heap()
20 #ma = ma[0]
21 #print('import mixersettings')
22 #print(mb-ma)
24 n = 0
25 timenow = sys.time()
26 fpStatus = flightplanstatus.FlightPlanStatus()
28 while n < 120:
29 n = n+1
30 #openpilot.debug(n, timenow)
31 fpStatus.read()
32 fpStatus.Debug.value[0] = n
33 fpStatus.Debug.value[1] = timenow
34 fpStatus.write()
35 timenow = openpilot.delayUntil(timenow, 1000)
36 if openpilot.hasStopRequest():
37 sys.exit()