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 Aug 15, 2024
1 parent 0cf0a3e commit 1ce9d84
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 @@ -614,7 +614,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 1ce9d84

Please sign in to comment.