mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 15:43:33 +08:00
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:
@@ -31,4 +31,4 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
px4_add_library(WeatherVane WeatherVane.cpp)
|
||||
px4_add_library(WeatherVane WeatherVane.cpp)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user