mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Rename MAG mode to HEADING LOCK mode; Allow to operate without compass
This commit is contained in:
parent
4f4bdbb976
commit
0e4833f41e
17 changed files with 88 additions and 93 deletions
|
@ -492,6 +492,9 @@ static void imuCalculateEstimatedAttitude(float dT)
|
|||
// Re-initialize quaternion from known Roll, Pitch and GPS heading
|
||||
imuComputeQuaternionFromRPY(attitude.values.roll, attitude.values.pitch, gpsSol.groundCourse);
|
||||
gpsHeadingInitialized = true;
|
||||
|
||||
// Force reset of heading hold target
|
||||
resetHeadingHoldTarget(DECIDEGREES_TO_DEGREES(attitude.values.yaw));
|
||||
}
|
||||
|
||||
// If we can't use COG and there's MAG available - fallback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue