mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 08:13:56 -04:00
AP_Compass: fixed external compass detection for AK8963
This commit is contained in:
parent
f0753e965e
commit
4394f0cf75
@ -503,7 +503,7 @@ bool AP_Compass_AK8963::read()
|
||||
// add user selectable orientation
|
||||
_field[0].rotate((enum Rotation)_orientation[0].get());
|
||||
|
||||
if (!_external) {
|
||||
if (!_external[0]) {
|
||||
// and add in AHRS_ORIENTATION setting if not an external compass
|
||||
_field[0].rotate(_board_orientation);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user