Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fly_Assistant_Set_As_Destination returns none #118

Open
TobaT3 opened this issue May 25, 2022 · 2 comments
Open

Fly_Assistant_Set_As_Destination returns none #118

TobaT3 opened this issue May 25, 2022 · 2 comments

Comments

@TobaT3
Copy link

TobaT3 commented May 25, 2022

I have this very simple piece of code that tries to get the destination of the plane in msfs2020.
I tried the "FLY_ASSISTANT_SET_AS_DESTINATION" simvar and it should return the destination set by the flight assistant (which is automatically set if you have selected a flight plan on the world map), however it simply returns None, even though i have a destination set. It returns other parameters (like the altitude there) just fine:

from SimConnect import *
import time

sm = SimConnect()
aq = AircraftRequests(sm)

while True:

    altitude = aq.get("PLANE_ALTITUDE")
    print(altitude)

    destination = aq.get("FLY_ASSISTANT_SET_AS_DESTINATION")
    print(destination)
    
    time.sleep(2)
@TobaT3
Copy link
Author

TobaT3 commented May 25, 2022

And if someone had another way of getting the destination (from the flight plan inputted in the world map), that would be great.
I saw something with saving and dictionaries but i cant get that to work.

@telemole
Copy link

Did you ever get past this? I have a really nicely functioning AI co-pilot bot sets destinations for (in my code) and I can successfully feed it my position and it 'guides' me to the target by voice with headings and distance, but i would love just SET THE DESTINATION PIN or something equivalent to dropping a marker in the world with the lat and lon I already have.

Any help would be appreciated

I am going to try to play with these, but I'm still thinking this is barking up the wrong tree :
"GPS_IS_ACTIVE_WAY_POINT", "GPS_POSITION_LAT", "GPS_POSITION_LON"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants