mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
AC_WPNav: correct Copter mode entry with low RC rate demand
This commit is contained in:
committed by
Peter Barker
parent
0a5c5a433a
commit
bbe32dfd18
@@ -72,6 +72,12 @@ public:
|
||||
// May be lower than the configured maximum due to ramp constraints.
|
||||
float get_rate_current() const { return degrees(_angular_vel_rads); }
|
||||
|
||||
// Returns the commanded turn-rate target in degrees per second.
|
||||
// This is the rate the controller ramps towards (set by the RATE
|
||||
// parameter or set_rate_degs()), unlike the instantaneous ramped
|
||||
// velocity returned by get_rate_current().
|
||||
float get_rate_target_degs() const { return degrees(_rotation_rate_max_rads); }
|
||||
|
||||
// Sets the target circle rate in degrees per second.
|
||||
// Positive values result in clockwise rotation; negative for counter-clockwise.
|
||||
void set_rate_degs(float rate_degs);
|
||||
|
||||
Reference in New Issue
Block a user