Changeset 36:29e3b676c0c2 in xplra for test
- Timestamp:
- 02/10/13 08:21:47 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
test/basicctest.c
r29 r36 42 42 int retval = 0; 43 43 const char* errorString = 0; 44 45 int xplaneVersion = 0; 46 int xplmVersion = 0; 47 int xplraVersion = 0; 48 44 49 int numEngines = 0; 45 50 float spoolTime = 0.0; … … 69 74 } 70 75 76 printf("Querying the versions...\n"); 77 if (xplra_get_versions(connectionID, &xplaneVersion, 78 &xplmVersion, &xplraVersion)<0) goto error; 79 printf("X-Plane version: %d, XPLM: %d, XPLRA: %03d\n\n", 80 xplaneVersion, xplmVersion, xplraVersion); 81 71 82 printf("Querying the number of the engines...\n"); 72 83 if (xplra_get_int(&numEngines, connectionID, -
test/basictest.cc
r25 r36 53 53 printf("Connected to X-Plane.\n\n"); 54 54 55 int xplaneVersion = 0; 56 int xplmVersion = 0; 57 int xplraVersion = 0; 58 59 printf("Querying the versions...\n"); 60 xplane.getVersions(xplaneVersion, xplmVersion, xplraVersion); 61 printf("X-Plane version: %d, XPLM: %d, XPLRA: %03d\n\n", 62 xplaneVersion, xplmVersion, xplraVersion); 63 55 64 printf("Querying the number of the engines...\n"); 56 65 int numEngines = xplane.getInt("sim/aircraft/engine/acf_num_engines"); -
test/basictest.py
r35 r36 12 12 xplane.connect() 13 13 print "Connected to X-Plane." 14 print 15 16 print "Querying the versions..." 17 (xplaneVersion, xplmVersion, xplraVersion) = xplane.getVersions() 18 print "X-Plane version: %d, XPLM: %d, XPLRA: %03d" % \ 19 (xplaneVersion, xplmVersion, xplraVersion) 14 20 print 15 21
Note:
See TracChangeset
for help on using the changeset viewer.