source: src/test.py@ 5:90eade9afbcb

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

Added some further data to those queried and reworked a bit the way the model changes are handled

File size: 501 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.TYPE_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.