Coder Social home page Coder Social logo

Comments (5)

phoudoin avatar phoudoin commented on September 1, 2024 3

(num1) = pitch / bank / heading / onground value
a decimal sent as string whose value is the following unsigned 32bits binary number:

 3         2         1         0
10987654321098765432109876543210
<  pitch ><  bank  ><heading >OU
  • U bit:
    • unused
  • O bit:
    • Aircraft onground indicator.
  • heading 10bits field:
    • aircraft current heading, in degree
    • values range [0, 1023] (unsigned 10 bits number)
    • 1 = 360/1024 degree
    • 0 = magnetic north
  • bank 10bits field:
    • aircraft current bank / roll angle, in degree
    • values range [-511, 512] (signed 10 bits number),
    • 1 = 180/512 degree,
    • negative value = right wing banking.
  • pitch 10bits field:
    • aircraft current pitch angle, in degree
    • values range [-511, 512] (signed 10 bits number)
    • 1 = 90/256 degree
    • 0 = aircraft is at level
    • 256 = aircraft pitch is 90 degree up (aka skyrocket!)
    • negative value = down pitch

Onground aircrafts have usually 0 degree pitch and bank angles, their (num1) value is mostly heading encoded, a small value, very stable until they start taxiing.

On the contrary, airborne aircrafts have rarely perfect 0 degree pitch and banking angles, leading to big (num1) values.

from fsd-doc.

phoudoin avatar phoudoin commented on September 1, 2024 3

(num2) = difference between Above Ground Level altitude (AGL) and Above Mean Sea Level (AMSL) altitude, as reported by aircraft barometric altimeter

Unit is feet, obviously.

from fsd-doc.

gtxzsxxk avatar gtxzsxxk commented on September 1, 2024

(num1) = pitch / bank / heading / onground value
a decimal sent as string whose value is the following unsigned 32bits binary number:

 3         2         1         0
10987654321098765432109876543210
<  pitch ><  bank  ><heading >OU
  • U bit:

    • unused
  • O bit:

    • Aircraft onground indicator.
  • heading 10bits field:

    • aircraft current heading, in degree
    • values range [0, 1023] (unsigned 10 bits number)
    • 1 = 360/1024 degree
    • 0 = magnetic north
  • bank 10bits field:

    • aircraft current bank / roll angle, in degree
    • values range [-511, 512] (signed 10 bits number),
    • 1 = 180/512 degree,
    • negative value = right wing banking.
  • pitch 10bits field:

    • aircraft current pitch angle, in degree
    • values range [-511, 512] (signed 10 bits number)
    • 1 = 90/256 degree
    • 0 = aircraft is at level
    • 256 = aircraft pitch is 90 degree up (aka skyrocket!)
    • negative value = down pitch

Onground aircrafts have usually 0 degree pitch and bank angles, their (num1) value is mostly heading encoded, a small value, very stable until they start taxiing.

On the contrary, airborne aircrafts have rarely perfect 0 degree pitch and banking angles, leading to big (num1) values.

I do thank you and must be grateful for it. This problem has been troublesome for me for totally 5 years.

from fsd-doc.

OdiasUkcamaj avatar OdiasUkcamaj commented on September 1, 2024

(num1) = pitch / bank / heading / onground value
a decimal sent as string whose value is the following unsigned 32bits binary number:

 3         2         1         0
10987654321098765432109876543210
<  pitch ><  bank  ><heading >OU
  • U bit:

    • unused
  • O bit:

    • Aircraft onground indicator.
  • heading 10bits field:

    • aircraft current heading, in degree
    • values range [0, 1023] (unsigned 10 bits number)
    • 1 = 360/1024 degree
    • 0 = magnetic north
  • bank 10bits field:

    • aircraft current bank / roll angle, in degree
    • values range [-511, 512] (signed 10 bits number),
    • 1 = 180/512 degree,
    • negative value = right wing banking.
  • pitch 10bits field:

    • aircraft current pitch angle, in degree
    • values range [-511, 512] (signed 10 bits number)
    • 1 = 90/256 degree
    • 0 = aircraft is at level
    • 256 = aircraft pitch is 90 degree up (aka skyrocket!)
    • negative value = down pitch

Onground aircrafts have usually 0 degree pitch and bank angles, their (num1) value is mostly heading encoded, a small value, very stable until they start taxiing.
On the contrary, airborne aircrafts have rarely perfect 0 degree pitch and banking angles, leading to big (num1) values.

I do thank you and must be grateful for it. This problem has been troublesome for me for totally 5 years.

Hello,
I've been trying to decode the Indicated Heading from the 10 bits number but have been unable to do so, how did you manage to extract the Aircraft heading? For example this is the number for 0 pitch 0 bank and a heading of 080, "12575602" How do I extract the information I need from it?
Thanks.

from fsd-doc.

dextercai avatar dextercai commented on September 1, 2024

Use the bit operate to get the specific bit in the pbh value. That means the pbh value should be discussed at the binary level.
Here is the demo code in JavaScript. The other value can be read in the same way.

var heading = Math.round(((parseInt(pbh) & 4092) >> 2) / 1024 * 360);

from fsd-doc.

Related Issues (8)

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.