-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Current Behavior
At present, INAV is unable to use flight modes in automatic navigation if a magnetometer is missing.
This also affects the RTH function in case of radio link failure.
I have recently issued a feature request to improve the calibration of the magnetometer, but there is also the possibility to avoid using the magnetometer at all, as I explain below.
Desired Behavior
Use the GPS calculated heading in place of the magnetometer.
Suggested Solution
The GPS (with 3D fix) provides a reliable direction of travel. It calculates the direction in which the vehicle is flying using the current coordinates and those of a point taken a few moments earlier.
If the speed of the vehicle is high enough, the calculation of the direction relative to north is very precise.
We can then use this information to navigate along a path of waypoints.
A trouble only occurs when the aircraft slows down below a minimum speed and stops at a point.
The solution I propose is to consider that the drone is still oriented as defined by the last GPS indication before the speed drops below the threshold.
This way if the aircraft has to stop and remain stationary, for example, it will not rotate on itself.
When a waypoint is reached, the last heading provided by the GPS before the horizontal speed drops below the threshold is used to calculate the new route to the next one.
This mode can be set by selecting the Virtaul Magnetometer from the list of possible magnetometer devices.
Who does this impact? Who is this for?
Every magnetomeeter users