2011-01-14 00:54:30 +01:00
|
|
|
import sys
|
2011-03-03 03:22:50 +01:00
|
|
|
#mb = sys.heap()
|
|
|
|
#mb = mb[0]
|
|
|
|
import openpilot
|
|
|
|
#ma = sys.heap()
|
|
|
|
#ma = ma[0]
|
|
|
|
#print('import openpilot')
|
|
|
|
#print(mb-ma)
|
|
|
|
#mb = sys.heap()
|
|
|
|
#mb = mb[0]
|
|
|
|
import flightplanstatus
|
|
|
|
#ma = sys.heap()
|
|
|
|
#ma = ma[0]
|
|
|
|
#print('import flightplanstatus')
|
|
|
|
#print(mb-ma)
|
|
|
|
#mb = sys.heap()
|
|
|
|
#mb = mb[0]
|
|
|
|
import mixersettings
|
|
|
|
#ma = sys.heap()
|
|
|
|
#ma = ma[0]
|
|
|
|
#print('import mixersettings')
|
|
|
|
#print(mb-ma)
|
2011-01-14 00:54:30 +01:00
|
|
|
|
2011-01-22 22:32:23 +01:00
|
|
|
n = 0
|
2011-03-03 03:22:50 +01:00
|
|
|
timenow = sys.time()
|
|
|
|
fpStatus = flightplanstatus.FlightPlanStatus()
|
2011-01-22 22:32:23 +01:00
|
|
|
|
|
|
|
while n < 120:
|
|
|
|
n = n+1
|
2011-03-03 03:22:50 +01:00
|
|
|
#openpilot.debug(n, timenow)
|
|
|
|
fpStatus.read()
|
|
|
|
fpStatus.Debug.value[0] = n
|
|
|
|
fpStatus.Debug.value[1] = timenow
|
|
|
|
fpStatus.write()
|
2011-01-22 22:32:23 +01:00
|
|
|
timenow = openpilot.delayUntil(timenow, 1000)
|
|
|
|
if openpilot.hasStopRequest():
|
|
|
|
sys.exit()
|
|
|
|
|
2011-01-14 00:54:30 +01:00
|
|
|
|
|
|
|
|