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:
parent
f8f31f3d33
commit
daec1b9aff
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue