Giter VIP home page Giter VIP logo

xplane's Introduction

Xplane

Read data from the simulator export to embedded devices and actuators ...

Experience, tips, how to, ...

Collected by Twenkid.

Version: 10.4.2022

https://github.com/leecbaker/xplane_sdk/blob/master/sdk/CHeaders/XPLM/XPLMPlanes.h

От тук се прихваща управлението на обект самолет в симулатора:

XPLM_API int        XPLMAcquirePlanes(
                         char **              inAircraft,    /* Can be NULL */
                         XPLMPlanesAvailable_f inCallback,    
                         void *               inRefcon);    

И после може да му се прочетат напр. следните параметри, които мисля че може да се ползват за движение на уреди от самолет или за накланяне на платформи или пък да речем на модел на самолета с образователна цел.

typedef struct {
     /* The size of the draw state struct.                                         /
     int                       structSize;
     / A ratio from [0..1] describing how far the landing gear is extended.       /
     float                     gearPosition;
     / Ratio of flap deployment, 0 = up, 1 = full deploy.                         /
     float                     flapRatio;
     / Ratio of spoiler deployment, 0 = none, 1 = full deploy.                    /
     float                     spoilerRatio;
     / Ratio of speed brake deployment, 0 = none, 1 = full deploy.                /
     float                     speedBrakeRatio;
     / Ratio of slat deployment, 0 = none, 1 = full deploy.                       /
     float                     slatRatio;
     / Wing sweep ratio, 0 = forward, 1 = swept.                                  /
     float                     wingSweep;
     / Thrust power, 0 = none, 1 = full fwd, -1 = full reverse.                   /
     float                     thrust;
     / Total pitch input for this plane.                                          /
     float                     yokePitch;
     / Total Heading input for this plane.                                        /
     float                     yokeHeading;
     / Total Roll input for this plane.                                           */
     float                     yokeRoll;
} XPLMPlaneDrawState_t;

X-plane SDK 3 Tutorial - Build Your First Plugin in Visual Studio 2017 [Part 1] https://www.youtube.com/watch?v=8hwPJnhYapo

Compile --> produces .xpl file --> move to the "plugins" folder of the selected plane of Xplane

https://developer.x-plane.com/code-sample/acquireplanetest/

https://developer.x-plane.com/sdk/XPLMDataAccess/

https://developer.x-plane.com/code-sample/sharedata/

xplane's People

Contributors

twenkid avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.