ArduPilot / ArduPilot/ardupilot

EKF: bug in handling of loss of primary compass (does not fall back to secondary compass)

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

Description

If primary compass is lost then the EKF does not fall back to a backup compass. We need to work out exactly what behaviour we want. Key situations are:
- primary compass stops giving data
- user set COMPASS_USE=0 to disable primary

Before we can fix this we need to have a way to kill compasses in SITL, so we can test the behaviour properly

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the EKF compass-selection path and SITL compass controls; the issue names no files or tests. Define expected behavior for a stopped primary compass versus COMPASS_USE=0, then verify in SITL that the secondary compass is selected in each applicable case.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
robotics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.