ArduPilot / ArduPilot/ardupilot

Add an option to use a compass for pre-arm consistency check but not for heading estimation

Open
#9,768 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
15.9k
Forks
21.4k
Avg merge
3d 17h
Merged PRs (30d)
119

Description

### Feature request

**Is your feature request related to a problem? Please describe.**
The Cube is mounted close to a battery and sees nearly 2000 mGa field intensity when the vehicle's propulsion is operating. An external magnetometer is in use for heading estimation. I would like the magnetometer consistency check to check the external mag against the internal mag prior to arming the vehicle.

**Describe the solution you'd like**
Perhaps COMPASS_USE could have a new option 2, where the compass is used for consistency checks, but not for heading determination.

**Platform**
[ x ] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine

Contributor guide

Open the contributing guide

Research direction

Start by tracing the COMPASS_USE parameter and the existing compass consistency and heading-estimation paths. The work is complete when a new option performs the external-versus-internal magnetometer consistency check before arming while excluding that compass from heading determination; validate both behaviors in the relevant vehicle scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, robotics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.