source: src/test.py@ 6:db83d19666dc

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

A bit of work on the constants

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