PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <WeatherVane.hpp>
Public Member Functions | |
WeatherVane () | |
~WeatherVane ()=default | |
void | activate () |
void | deactivate () |
bool | is_active () |
bool | weathervane_enabled () |
void | update (const matrix::Vector3f &dcm_z_sp_prev, float yaw) |
float | get_weathervane_yawrate () |
void | update_parameters () |
Private Attributes | |
matrix::Vector3f | _dcm_z_sp_prev |
previous attitude setpoint body z axis More... | |
float | _yaw = 0.0f |
current yaw angle More... | |
bool | _is_active = true |
Definition at line 48 of file WeatherVane.hpp.
WeatherVane::WeatherVane | ( | ) |
Definition at line 44 of file WeatherVane.cpp.
|
default |
|
inline |
Definition at line 55 of file WeatherVane.hpp.
References _is_active.
Referenced by FlightTaskAuto::_evaluateTriplets(), and MulticopterPositionControl::Run().
|
inline |
Definition at line 57 of file WeatherVane.hpp.
References _is_active.
Referenced by FlightTaskAuto::_evaluateTriplets(), and MulticopterPositionControl::Run().
float WeatherVane::get_weathervane_yawrate | ( | ) |
Definition at line 54 of file WeatherVane.cpp.
References _dcm_z_sp_prev, _yaw, math::constrain(), f(), matrix::Vector< Type, M >::normalize(), and math::radians().
Referenced by FlightTaskAuto::_evaluateTriplets(), FlightTaskManualPosition::_updateSetpoints(), and weathervane_enabled().
|
inline |
Definition at line 59 of file WeatherVane.hpp.
References _is_active.
Referenced by FlightTaskAuto::_evaluateTriplets(), and FlightTaskManualPosition::_updateSetpoints().
void WeatherVane::update | ( | const matrix::Vector3f & | dcm_z_sp_prev, |
float | yaw | ||
) |
Definition at line 48 of file WeatherVane.cpp.
References _dcm_z_sp_prev, and _yaw.
Referenced by MulticopterPositionControl::Run(), and weathervane_enabled().
|
inline |
Definition at line 67 of file WeatherVane.hpp.
Referenced by MulticopterPositionControl::parameters_update().
|
inline |
Definition at line 61 of file WeatherVane.hpp.
References get_weathervane_yawrate(), and update().
Referenced by MulticopterPositionControl::Run().
|
private |
previous attitude setpoint body z axis
Definition at line 70 of file WeatherVane.hpp.
Referenced by get_weathervane_yawrate(), and update().
|
private |
Definition at line 73 of file WeatherVane.hpp.
Referenced by activate(), deactivate(), and is_active().
|
private |
current yaw angle
Definition at line 71 of file WeatherVane.hpp.
Referenced by get_weathervane_yawrate(), and update().