mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Scale heading appropriately (#13269)
This commit is contained in:
parent
5fff78136e
commit
70e70c5d7b
1 changed files with 1 additions and 1 deletions
|
@ -3646,7 +3646,7 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
|||
int32_t ned_vel_east = (int32_t)sbufReadU32(src); // ned_vel_east
|
||||
gpsSol.groundSpeed = (uint16_t)sqrtf((ned_vel_north * ned_vel_north) + (ned_vel_east * ned_vel_east));
|
||||
(void)sbufReadU32(src); // ned_vel_down
|
||||
gpsSol.groundCourse = ((uint16_t)sbufReadU16(src) % 360); // ground_course
|
||||
gpsSol.groundCourse = ((uint16_t)sbufReadU16(src) % 36000) / 10; // incoming value expected to be in centidegrees, output value in decidegrees
|
||||
(void)sbufReadU16(src); // true_yaw
|
||||
(void)sbufReadU16(src); // year
|
||||
(void)sbufReadU8(src); // month
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue