Skip to content

Commit 39c0858

Browse files
committed
removed none working examples
1 parent 0182ed4 commit 39c0858

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

local_example.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,7 @@
1414
sm = SimConnect()
1515
aq = AircraftRequests(sm)
1616
ae = AircraftEvents(sm)
17-
fs = FacilitiesRequests(sm)
1817

19-
#print('ALTITUDE', aq.PositionandSpeedData.get('PLANE_ALTITUDE'))
20-
#print('ATC_ID', aq.StringData.get('ATC_ID'))
21-
22-
wp = [SIMCONNECT_DATA_WAYPOINT() for i in range(3)]
23-
wp[0].Flags = SIMCONNECT_WAYPOINT_FLAGS.SIMCONNECT_WAYPOINT_SPEED_REQUESTED.value.value
24-
wp[0].Altitude = 800
25-
wp[0].Latitude = 47 + (27.79 / 60)
26-
wp[0].Longitude = -122 - (18.46 / 60)
27-
wp[0].ktsSpeed = 100
28-
29-
wp[1].Flags = SIMCONNECT_WAYPOINT_FLAGS.SIMCONNECT_WAYPOINT_SPEED_REQUESTED.value.value
30-
wp[1].Altitude = 600
31-
wp[1].Latitude = 47 + (27.79 / 60)
32-
wp[1].Longitude = -122 - (17.37 / 60)
33-
wp[1].ktsSpeed = 100
34-
35-
wp[2].Flags = SIMCONNECT_WAYPOINT_FLAGS.SIMCONNECT_WAYPOINT_WRAP_TO_FIRST.value.value | SIMCONNECT_WAYPOINT_FLAGS.SIMCONNECT_WAYPOINT_SPEED_REQUESTED.value.value
36-
wp[2].Altitude = 800
37-
wp[2].Latitude = 47 + (27.79 / 60)
38-
wp[2].Longitude = -122 - (19.92 / 60)
39-
wp[2].ktsSpeed = 100
40-
41-
if sm.add_waypoints(wp):
42-
print("Sent")
43-
44-
while not sm.quit:
45-
print('RUDDER', aq.find('RUDDER_TRIM_PCT').value)
46-
sm.run()
47-
sleep(.500)
48-
sm.exit()
49-
quit()
5018
# Set pos arund space nedle in WA.
5119
sm.set_pos(
5220
_Altitude=1000.0,

0 commit comments

Comments
 (0)