1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 09:16:01 +03:00

Update navigation.c (#6852)

This commit is contained in:
breadoven 2021-04-19 15:17:32 +01:00 committed by GitHub
parent c63aa64ff4
commit 65f344358a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1480,6 +1480,7 @@ static navigationFSMEvent_t navOnEnteringState_NAV_STATE_WAYPOINT_INITIALIZE(nav
*/
setupJumpCounters();
posControl.activeWaypointIndex = 0;
wpHeadingControl.mode = NAV_WP_HEAD_MODE_NONE;
return NAV_FSM_EVENT_SUCCESS; // will switch to NAV_STATE_WAYPOINT_PRE_ACTION
}
}