Skip to content

Commit

Permalink
AP_AHRS: correct get_accel() to use primary accel rather than first u…
Browse files Browse the repository at this point in the history
…sable for scripting
  • Loading branch information
andyp1per committed Sep 5, 2024
1 parent c477a2b commit d817f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_AHRS/AP_AHRS.h
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ class AP_AHRS {

// return primary accels, for lua
const Vector3f &get_accel(void) const {
return AP::ins().get_accel();
return AP::ins().get_accel(_get_primary_accel_index());
}

// return primary accel bias. This should be subtracted from
Expand Down

0 comments on commit d817f14

Please sign in to comment.