Skip to content

Commit

Permalink
AP_AHRS_View: add method to get pitch trim and note on rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and tridge committed Apr 26, 2022
1 parent 902b895 commit 04fdfea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_AHRS/AP_AHRS_View.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,14 @@ class AP_AHRS_View


// get current rotation
// note that this may not be the rotation were actually using, see _pitch_trim_deg
enum Rotation get_rotation(void) const {
return rotation;
}

// get pitch trim (deg)
float get_pitch_trim() const { return _pitch_trim_deg; }

private:
const enum Rotation rotation;
AP_AHRS &ahrs;
Expand Down

0 comments on commit 04fdfea

Please sign in to comment.