Browse Source

AP_AHRS: add method to get view

apm_2208
Iampete1 3 years ago committed by Andrew Tridgell
parent
commit
6c24a5ff37
  1. 8
      libraries/AP_AHRS/AP_AHRS.cpp
  2. 4
      libraries/AP_AHRS/AP_AHRS.h

8
libraries/AP_AHRS/AP_AHRS.cpp

@ -3207,14 +3207,6 @@ void AP_AHRS::set_alt_measurement_noise(float noise) @@ -3207,14 +3207,6 @@ void AP_AHRS::set_alt_measurement_noise(float noise)
#endif
}
/*
get the current view's rotation, or ROTATION_NONE
*/
enum Rotation AP_AHRS::get_view_rotation(void) const
{
return _view?_view->get_rotation():ROTATION_NONE;
}
// check if non-compass sensor is providing yaw. Allows compass pre-arm checks to be bypassed
const EKFGSF_yaw *AP_AHRS::get_yaw_estimator(void) const
{

4
libraries/AP_AHRS/AP_AHRS.h

@ -609,8 +609,8 @@ public: @@ -609,8 +609,8 @@ public:
_vehicle_class = vclass;
}
// get the view's rotation, or ROTATION_NONE
enum Rotation get_view_rotation(void) const;
// get the view
AP_AHRS_View *get_view(void) const { return _view; };
// get access to an EKFGSF_yaw estimator
const EKFGSF_yaw *get_yaw_estimator(void) const;

Loading…
Cancel
Save