File tree 1 file changed +0
-32
lines changed 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 14
14
sm = SimConnect ()
15
15
aq = AircraftRequests (sm )
16
16
ae = AircraftEvents (sm )
17
- fs = FacilitiesRequests (sm )
18
17
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 ()
50
18
# Set pos arund space nedle in WA.
51
19
sm .set_pos (
52
20
_Altitude = 1000.0 ,
You can’t perform that action at this time.
0 commit comments