mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 02:23:33 +08:00
Weathervane: pass quaterionon as constant reference
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -47,7 +47,7 @@ WeatherVane::WeatherVane() :
|
||||
_R_sp_prev = matrix::Dcmf();
|
||||
}
|
||||
|
||||
void WeatherVane::update(matrix::Quatf q_sp_prev, float yaw)
|
||||
void WeatherVane::update(const matrix::Quatf &q_sp_prev, float yaw)
|
||||
{
|
||||
_R_sp_prev = matrix::Dcmf(q_sp_prev);
|
||||
_yaw = yaw;
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
|
||||
bool auto_enabled() { return _wv_auto_enabled.get(); }
|
||||
|
||||
void update(matrix::Quatf q_sp_prev, float yaw);
|
||||
void update(const matrix::Quatf &q_sp_prev, float yaw);
|
||||
|
||||
float get_weathervane_yawrate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user