|
XPMP2
X-Plane multiplayer library 2 - using instancing
|
A/C Position updates based on global coordinates. More...
#include <XPMPRemote.h>
Public Member Functions | |
| RemoteAcPosUpdateTy () | |
| Default Constructor sets all 0. More... | |
| RemoteAcPosUpdateTy (XPMPPlaneID _modeS_id, std::int16_t _dLat, std::int16_t _dLon, std::int16_t _dAlt_ft, std::uint16_t _dTime, float _pitch, float _heading, float _roll) | |
| Constructor sets all values. More... | |
| void | SetPitch (float _p) |
| sets pitch from float More... | |
| float | GetPitch () const |
| returns float pitch More... | |
| void | SetHeading (float _h) |
| Sets heading from float. More... | |
| float | GetHeading () const |
| returns float heading More... | |
| void | SetRoll (float _r) |
| sets pitch from float More... | |
| float | GetRoll () const |
| returns float pitch More... | |
Static Public Member Functions | |
| static constexpr size_t | msgSize () |
| message size More... | |
Public Attributes | |
| std::uint32_t | modeS_id |
| plane's unique id at the sender side (might differ remotely in case of duplicates) More... | |
| std::int16_t | dLat |
| [0.0000001 degrees] latitude position difference More... | |
| std::int16_t | dLon |
| [0.0000001 degrees] longitude position difference More... | |
| std::int16_t | dAlt_ft |
| [0.01 ft] altitude difference More... | |
| std::uint16_t | dTime |
| [0.0001s] time difference to previous position in 1/10000s More... | |
| std::int16_t | pitch |
| [0.01 degree] pitch/100 More... | |
| std::uint16_t | heading |
| [0.01 degree] heading/100 More... | |
| std::int16_t | roll |
| [0.01 degree] roll/100 More... | |
| std::uint16_t | filler1 |
| not yet used (for 4-byte alignment) More... | |
A/C Position updates based on global coordinates.
for space efficiency only deltas to last msg are given in 0.0000001 degree lat/lon (roughly 1 centimeter resolution) and 0.01 ft altitude
|
inline |
Default Constructor sets all 0.
| XPMP2::RemoteAcPosUpdateTy::RemoteAcPosUpdateTy | ( | XPMPPlaneID | _modeS_id, |
| std::int16_t | _dLat, | ||
| std::int16_t | _dLon, | ||
| std::int16_t | _dAlt_ft, | ||
| std::uint16_t | _dTime, | ||
| float | _pitch, | ||
| float | _heading, | ||
| float | _roll | ||
| ) |
Constructor sets all values.
|
inline |
returns float heading
|
inline |
returns float pitch
|
inline |
returns float pitch
|
inlinestaticconstexpr |
message size
| void XPMP2::RemoteAcPosUpdateTy::SetHeading | ( | float | _h | ) |
Sets heading from float.
0 <= _h < 360
|
inline |
sets pitch from float
|
inline |
sets pitch from float
| std::int16_t XPMP2::RemoteAcPosUpdateTy::dAlt_ft |
[0.01 ft] altitude difference
| std::int16_t XPMP2::RemoteAcPosUpdateTy::dLat |
[0.0000001 degrees] latitude position difference
| std::int16_t XPMP2::RemoteAcPosUpdateTy::dLon |
[0.0000001 degrees] longitude position difference
| std::uint16_t XPMP2::RemoteAcPosUpdateTy::dTime |
[0.0001s] time difference to previous position in 1/10000s
| std::uint16_t XPMP2::RemoteAcPosUpdateTy::filler1 |
not yet used (for 4-byte alignment)
| std::uint16_t XPMP2::RemoteAcPosUpdateTy::heading |
[0.01 degree] heading/100
| std::uint32_t XPMP2::RemoteAcPosUpdateTy::modeS_id |
plane's unique id at the sender side (might differ remotely in case of duplicates)
| std::int16_t XPMP2::RemoteAcPosUpdateTy::pitch |
[0.01 degree] pitch/100
| std::int16_t XPMP2::RemoteAcPosUpdateTy::roll |
[0.01 degree] roll/100