Telemetry Output

Moderators: Tony, admin

Telemetry Output

Postby SilentChill » Thu Oct 18, 2018 3:40 pm

Hi !

I was looking in the SDK but I have no idea how I would extract the data for the telemtry for motion ? The aircraft tutorial is not there ?

Code: Select all
FlightModel
//Constructors/Producers
GetFlightModel() -> FlightModel
getFlightModel(AircraftInstance) -> FlightModel

//Methods
FlightModel.ForceMultiplier() -> float
FlightModel.OrientationLocal() -> quat
FlightModel.PositionLLA() -> dvec3
FlightModel.PositionLocal() -> dvec3
FlightModel.VelocityLocal() -> dvec3
FlightModel.fromBodyToWorld(dvec3) -> dvec3
FlightModel.fromWorldToBody(dvec3) -> dvec3
FlightModel.getPBH() -> vec3
FlightModel.isPositionLocalDirty() -> bool
FlightModel.markPositionLocalDirty() -> void
FlightModel.setPBH(vec3) -> void


Thats where I need the data from then we can get the Pitch, Roll, Yaw, Surge, Heave and Sway
i5 3570k @ 4.5Ghz , 16gb Corsair XMS 1600 , MSI GTX970 OC'd 355.84, Win10 Pro, Oculus 0.7, FlyInside 0.11, P3D v2.5 on 128gb SSD
SilentChill
 
Posts: 42
Joined: Sat Jul 11, 2015 11:50 am

Re: Telemetry Output

Postby admin » Thu Oct 18, 2018 3:56 pm

Hi, welcome :)

Check out http://cdn.flyinside-fsx.com/sdk/Tutorials/State/ which shows how to find, read, and write aircraft variables. Most of what you want is probably an aircraft variable of some sort or another.

For direct access to those FlightModel parameters try:
Code: Select all
auto& ac = GetUserAircraft();
auto& fm = ac.getFlightModel();
print("Lng: " + fm.PositionLLA.x.to_string());
print("Lat: " + fm.PositionLLA.y.to_string());
print("Alt: " + fm.PositionLLA.z.to_string());


We're working on a C/C++ SDK (with parallel APIs) which would let you query these variables and log them to a file, broadcast over the network, or really anything (because you have full native code to work with). Until then, the SDK will let you display them in a UI like that tutorial, or otherwise utilize them within the simulator environment.

Thanks,
Dan
Your friendly neighborhood developer!
Contact Me: dan@flyinside-fsx.com
admin
Site Admin
 
Posts: 2710
Joined: Tue Feb 06, 2007 8:36 am

Re: Telemetry Output

Postby SilentChill » Thu Oct 18, 2018 5:02 pm

Hi Dan,

Thanks for the quick reply :)

So at the moment there is no way to send the data over UDP ?
i5 3570k @ 4.5Ghz , 16gb Corsair XMS 1600 , MSI GTX970 OC'd 355.84, Win10 Pro, Oculus 0.7, FlyInside 0.11, P3D v2.5 on 128gb SSD
SilentChill
 
Posts: 42
Joined: Sat Jul 11, 2015 11:50 am

Re: Telemetry Output

Postby admin » Thu Oct 18, 2018 5:14 pm

That's correct. We'll have that soon though, it's both easy to add and important as far as add-on flexibility.

Thanks,
Dan
Your friendly neighborhood developer!
Contact Me: dan@flyinside-fsx.com
admin
Site Admin
 
Posts: 2710
Joined: Tue Feb 06, 2007 8:36 am

Re: Telemetry Output

Postby SilentChill » Fri Oct 19, 2018 7:30 am

That's good news , hopefully it will be soon. Flying without motion is pretty dull now :)

If you could let me know one way or another, release notes or message that would be great.
i5 3570k @ 4.5Ghz , 16gb Corsair XMS 1600 , MSI GTX970 OC'd 355.84, Win10 Pro, Oculus 0.7, FlyInside 0.11, P3D v2.5 on 128gb SSD
SilentChill
 
Posts: 42
Joined: Sat Jul 11, 2015 11:50 am

Re: Telemetry Output

Postby mnesys » Fri Oct 19, 2018 7:54 am

Hi,

will there be a simple way to communicate with boards like Arduinos? I'm used to FSUIPC Lua scripts and can't imagine make all my hardware work without a simple option to replace that...
mnesys
 
Posts: 35
Joined: Mon Jul 03, 2017 10:25 am


Return to Add-On Developers Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron