-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
Description
Very nice package, the glass cockpit demo is great, however I cannot get it to work with both the local_exemple.py and glass_server. I am getting a lot of None values returned from aq.get. I am using MSFS 2020 version 1.9.5.0 and SimConnect 0.6.1 DLL (as present in the branch).
Have you experienced any of this?
File "C:\Dev\python\simconnect\Python-SimConnect-master\glass_server.py", line 307, in output_ui_variables
fuel_percentage = (aq.get("FUEL_TOTAL_QUANTITY") / aq.get("FUEL_TOTAL_CAPACITY")) * 100
TypeError: unsupported operand type(s) for /: 'NoneType' and 'NoneType'
Or in some local_example.py fiddling.
Throttle = aq.find('GENERAL_ENG_THROTTLE_LEVER_POSITION:1')
altitude_f = aq.find("PLANE_ALTITUDE")
altitude_f.time = 200
while not sm.quit:
print("Throttle:", Throttle.value)
#altitude = aq.get("PLANE_ALTITUDE")
#print ("Altitude:", altitude)
print("Altitude_f:", altitude_f.value)
sleep(2)
Altitude_f: 1175.8360727116944
Throttle: 0.0
Altitude_f: None
Throttle: 0.0
Altitude_f: None
Throttle: 0.0
Altitude_f: 1175.8360727116944
Throttle: 0.0
Altitude_f: None
Throttle: 0.0
Altitude_f: 1175.8360727116944
Throttle: 0.0
Altitude_f: None
Throttle: 0.0
Altitude_f: None
Throttle: 0.0
Altitude_f: 1175.8360727116944
Metadata
Metadata
Assignees
Labels
No labels