Add magnetic heading as debug and magnetic declination for the Mahony filter (#13073)
commit9ada5638a314c6aa358d90412586cc0af6cf6443
authorpichim <93905657+pichim@users.noreply.github.com>
Tue, 26 Sep 2023 23:01:22 +0000 (27 00:01 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Sep 2023 23:01:22 +0000 (27 01:01 +0200)
treefe66479729779bcfeced963f169e393cb5caca14
parent1856d6f7ef611fe027e6bcbd6532a4b8c5bae5e5
Add magnetic heading as debug and magnetic declination for the Mahony filter (#13073)

* Add mag heading to GPS Rescue heading debug

* Roll and pitch compensated magnetic yaw

* Changes according to PR comments

* Encapsulate yawMag calculations

* Corrected naming

* Changes according to PR comments

* Changes so that Checks don't fail

* Added PARAM_NAME list

* Changes so that Checks don't fail

* Changes according to PR comments

* Update src/main/fc/parameter_names.h

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* Changes according to PR comments

* 200Hz compass task

* fix wait status flag

* increase default ODR of HMC5883L to 75Hz

* fix spikes in MagYaw debug by re-calc only on new data

---------

Co-authored-by: ctzsnooze <chris.thompson@sydney.edu.au>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
src/main/cli/settings.c
src/main/common/vector.h
src/main/drivers/compass/compass_hmc5883l.c
src/main/drivers/compass/compass_qmc5883l.c
src/main/fc/parameter_names.h
src/main/fc/tasks.c
src/main/flight/imu.c
src/main/flight/imu.h
src/main/sensors/compass.c
src/main/sensors/compass.h