API AirplaneState - feature requests

Awesome, thanks for the changes! I will have a look. Flapsstate alone is awesome.

The autopilot settings are settable, yes, but my request is that they would be gettable as well. Or maybe they already are and I am misunderstanding something?

You should be able to get the state of each controller (enabled/disabled), just not the target value.

2 Likes

The new aircraft states will come with the next update

4 Likes

Ah? So it would be what,

Commands.Autopilot.GetSpeed

?

You just confirmed C130 without a doubt ;)

<
https://ci3.googleusercontent.com/proxy/tIc6yT3OyWA1l98U9jwQqnnRnBTTtDwHvaK7vs_Lv-7LBKRmY9MwI6F5TL3Bxtim8077ygW46fpbJ1QEAlrthJiYFqNOSSkVgb5MQQUwfldWUe4-pk2ne1WBWRPvyLtIf8fKF_gtrS1kuJjT8AmcmbOE1XCWjrI=s0-d-e1-ft#https://sjc6.discourse-cdn.com/infiniteflight/user_avatar/community.infiniteflight.com/laura/45/72470_1.png>
Laura Staff
October 27

Just added a few things:

Aircraft.GetInfo will return some data about the current airplane:
Example:
{
“Result”: 0,
“Type”: “Fds.IFAPI.APIAircraftInfo”,
“FlapsConfiguration”: [
{
“FlapsAngle”: 0,
“Name”: “0%”,
“ShortName”: “0%”,
“SlatsAngle”: 0
},
{
“FlapsAngle”: 7,
“Name”: “20%”,
“ShortName”: “20%”,
“SlatsAngle”: 7
},
{
“FlapsAngle”: 17.5,
“Name”: “50%”,
“ShortName”: “50%”,
“SlatsAngle”: 17.5
},
{
“FlapsAngle”: 35,
“Name”: “100%”,
“ShortName”: “100%”,
“SlatsAngle”: 35
}
],
“HasAutopilot”: true,
“Name”: “C-130H”,
“SpoilerType”: 1
}

Also added 2 a few new fields in AirplaneState, ex:
“ApproachAirportICAO”: “KONT”,
“ApproachDistance”: 1135.53833,
“ApproachHorizontalAngle”: -0.0279764552,
“ApproachRunway”: “08L”,
“ApproachVerticalAngle”: -0.637350857,

About IsOnRunway, why do you guys need this one? Isn’t IsOnGround
sufficient?


Laura


Visit Topic or reply to this email to respond.


In Reply To

<
https://ci5.googleusercontent.com/proxy/F_6BuvX9-JbqI6xDjFazxgFwUrJMcfjbtomgSeSHu2DqAHahWzxUmIC-3dvZ6ewH5YCT2TQ6yOJRx4gREUiErhIuJXSWJ-mtgrYJgDT-gtSdG6oNgURzREeUXj7ZI7pZEIXX-OJd2upBvHBAs6nqj7qu9wV1K5NVOC_vnkVr7wO6Dw=s0-d-e1-ft#https://sjc6.discourse-cdn.com/infiniteflight/user_avatar/community.infiniteflight.com/giacomo_lawrance/45/54122_1.png>
Giacomo_Lawrance

Try it, let me know if it works :)

2 Likes

I did not, the real text was Concorde, but I tricked you guys!

30 Likes

Would like to see this for something I’m working on.

Hey,
So I’m a bit confused about AP. Is it possible to get the AP state ? (and not just set it) Last time I checked it wasn’t in AirplaneState data but it was some time ago, and I can’t check right now

Also, I’ve talked a bit to Laura about this, but I think it would be great if AirplaneState could be broadcasted instead of requested. It would be useful for remote apps like mine, of course, or @epaga one because it would help staying synced to the IF instance by just updating the app with broadcasted data, like we could do for a map thanks to the Foreflight data

But would also open a lot of possibilities for LAN apps : make run multiple apps around one IF instance (cockpit sharing for example), or allow two players running their own instance in the same room to make things together with one app (combo flight or whatever)

what do you guys think ?

(also I have some requests for the API but not about AirplaneState, should I just create a new thread?)

Nicolas

@epaga,

Were you able to get the Gets to work for the autopilot states?

Unrelated, I would like to suggest current Callsign be included in AirplaneState (as this can be changed while flying). Not priority, but would be nice and eliminate a user setup step in what I am working on.

The linked page isn’t active/doesn’t work