plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

eklynx avatar image
eklynx asked eklynx answered

Checking airborne on AI Aircraft (GEAR IS ON GROUND issue)

I’m working on sending traffic to ForeFlight, and I need to send if a plane is airborne or on the ground. I’m grabbing GEAR IS ON GROUND:0 for that determination, but all AI aircraft are showing false, even though they are obviously on the ground. Is there a better way to determine if a plane is airborne?


Note: Ground Aircraft that the sim populates are showing up correctly with gear on ground.

simconnect
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

darkclown avatar image
darkclown answered

AddToDataDefinition(DEFINITION.Traffic, "SIM ON GROUND", "Bool", SIMCONNECT_DATATYPE.INT32);

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

darkclown avatar image
darkclown answered

out of curiosity is there something more you are trying to accomplish over ff2fs?

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

eklynx avatar image
eklynx answered darkclown commented

I'm not trying to determine if I am on the ground, i'm trying to determine if another plane is on the ground. ForeFlight shows planes on ground as brown and in the air as blue. And no clue about things other than ff2fs; I've already had my own ForeFlight sender for a while with ADHR and GPS, and now that
a) i can load the game (after 7 months of not being able to even get to the main menu unless i'm offline), and
b) i have a ForeFlight subscription again due to Covid being at a low enough risk to finish up my Private license,
I'm adding traffic to my sender.

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

The above sim var gets on the ground for all traffic not just you. Like I said in the other thread feel free to have a look at my changes to ff2fs as I've already implemented the same functionality you are after.

0 Likes 0 ·
eklynx avatar image
eklynx answered

Initial indications look good that the SIM ON GROUND works. Thanks!

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.