mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
update GPS code
This commit is contained in:
parent
229ac66755
commit
f7c645bfcd
23 changed files with 671 additions and 490 deletions
|
@ -1023,7 +1023,7 @@ static void osdElementGpsHomeDirection(osdElementParms_t *element)
|
|||
{
|
||||
if (STATE(GPS_FIX) && STATE(GPS_FIX_HOME)) {
|
||||
if (GPS_distanceToHome > 0) {
|
||||
const int h = GPS_directionToHome - DECIDEGREES_TO_DEGREES(attitude.values.yaw);
|
||||
const int h = DECIDEGREES_TO_DEGREES(GPS_directionToHome - attitude.values.yaw);
|
||||
element->buff[0] = osdGetDirectionSymbolFromHeading(h);
|
||||
} else {
|
||||
element->buff[0] = SYM_OVER_HOME;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue