Skip to content

Commit

Permalink
Update mag_declination docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ot0tot committed Jan 26, 2025
1 parent 05be139 commit 54214fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/wiki/guides/current/Betaflight-4.5-CLI-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ mag_calibration = 0,0,0
Array length: 3
mag_declination = 0
Allowed range: 0 - 3599
Allowed range: -300 - 300
mag_hardware = AUTO
Allowed values: AUTO, NONE, HMC5883, AK8975, AK8963, QMC5883, LIS2MDL, LIS3MDL, MPU925X_AK8963, IST8310
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/guides/current/Magnetometer.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ As an example, in Sydney, Australia, 151°E 34°S, the Earth's magnetic field is

In Betaflight 4.5, the CLI variable `mag_declination` was introduced, to correct for declination offsets. When correctly set, Betaflight will return "true North", not "magnetic North", like the GPS course over ground values, which also return true North.

Declination values should be entered in decidegrees; in the above example, `set mag_declination = 130` would correct for a 13° positive declination, and `set mag_declination = 34` for positive 3.4° of declination. A negative local declination, eg -3°, should be entered as `set mag_declination = 3570` (i.e. 3600 - 30).
Declination values should be entered in decidegrees; in the above example, `set mag_declination = 130` would correct for a 13° positive declination, and `set mag_declination = 34` for positive 3.4° of declination. A negative local declination, eg -3°, should be entered as `set mag_declination = -30`.

## Mounting a Magnetometer

Expand Down

0 comments on commit 54214fa

Please sign in to comment.