source: src/test.py@ 7:f8d6fda3c66d

Last change on this file since 7:f8d6fda3c66d was 6:db83d19666dc, checked in by István Váradi <ivaradi@…>, 13 years ago

A bit of work on the constants

File size: 500 bytes
Line 
1# Test module
2
3import fs
4import acft
5import const
6import time
7
8def callback(data, extra):
9 print data
10
11def main():
12 simulator = fs.createSimulator(const.SIM_MSFS9, fs.ConnectionListener(),
13 acft.Aircraft(const.AIRCRAFT_B737))
14 simulator.connect()
15
16 time.sleep(10)
17 simulator.startMonitoring()
18
19 while True:
20 time.sleep(1000)
21 simulator.stopMonitoring()
22 simulator.disconnect()
23
24 time.sleep(5)
25
26if __name__ == "__main__":
27 main()
Note: See TracBrowser for help on using the repository browser.