Merge branch 'monitor-example' into develop

Conflicts:
	Python/xplaneConnect.pyproj
This commit is contained in:
Jason Watkins
2015-08-17 09:28:32 -07:00
17 changed files with 393 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import sys
import xpc
def monitor():
with xpc.XPlaneConnect() as client:
while True:
posi = client.getPOSI();
ctrl = client.getCTRL();
print "Loc: (%4f, %4f, %4f) Aileron:%2f Elevator:%2f Rudder:%2f\n"\
% (posi[0], posi[1], posi[2], ctrl[1], ctrl[0], ctrl[2])
if __name__ == "__main__":
monitor()