1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-20 14:55:18 +03:00

Add navigationGetHomeHeading()

Returns the heading for the home point, as recorded when home was
stored. Note that it won't work properly on FW without a mag yet,
since we'll need to adjust the value after we acquire a valid
heading.
This commit is contained in:
Alberto García Hierro 2018-05-07 08:35:50 +01:00
parent f8f31f3d33
commit daec1b9aff
2 changed files with 13 additions and 0 deletions

View file

@ -2713,6 +2713,12 @@ bool isNavLaunchEnabled(void)
{
return IS_RC_MODE_ACTIVE(BOXNAVLAUNCH) || feature(FEATURE_FW_LAUNCH);
}
int32_t navigationGetHomeHeading(void)
{
return posControl.homePosition.yaw;
}
#else // NAV
#ifdef USE_GPS