AP_AHRS: added get_error_rp and get_error_yaw to AHRS_View

This commit is contained in:
Andrew Tridgell 2017-03-31 10:32:33 +11:00
parent 4cb43b1c27
commit 5f02b7eddb

View File

@ -145,6 +145,18 @@ public:
return ahrs.getLastPosDownReset(posDelta);
}
// return the average size of the roll/pitch error estimate
// since last call
float get_error_rp(void) const {
return ahrs.get_error_rp();
}
// return the average size of the yaw error estimate
// since last call
float get_error_yaw(void) const {
return ahrs.get_error_yaw();
}
float roll;
float pitch;
float yaw;