Weathervane: pass quaterionon as constant reference

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2018-09-19 08:27:07 +02:00
committed by Lorenz Meier
parent ccaeb58708
commit 0e835cb498
3 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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();