mc_pos_control: use weathervane library to make vehicle turn into relative wind

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 6038c22174
commit 8abcf2defa
12 changed files with 125 additions and 5 deletions
+1 -1
View File
@@ -31,4 +31,4 @@
#
############################################################################
px4_add_library(WeatherVane WeatherVane.cpp)
px4_add_library(WeatherVane WeatherVane.cpp)
+1 -1
View File
@@ -79,4 +79,4 @@ float WeatherVane::get_weathervane_yawrate()
return math::constrain(roll_exceeding_treshold * _wv_gain, -_wv_yawrate_max_rad,
_wv_yawrate_max_rad);
}
}
+1 -1
View File
@@ -77,4 +77,4 @@ private:
float _wv_min_roll_rad = 0.01f; // minimum roll angle setpoint for the controller to output a non-zero yawrate setpoint
float _wv_yawrate_max_rad = 1.0f; // maximum yaw-rate the controller will output
};
};