AC_WPNav: rename circle_nav.set_radius to circle_nav.set_radius_cm

This commit is contained in:
Shiv Tyagi 2022-02-06 22:07:10 +05:30 committed by Randy Mackay
parent 7f74714107
commit e01ca79251
2 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ void AC_Circle::set_rate(float deg_per_sec)
}
/// set_circle_rate - set circle rate in degrees per second
void AC_Circle::set_radius(float radius_cm)
void AC_Circle::set_radius_cm(float radius_cm)
{
_radius = constrain_float(radius_cm, 0, AC_CIRCLE_RADIUS_MAX);
}

View File

@ -44,8 +44,8 @@ public:
/// get_radius - returns radius of circle in cm
float get_radius() const { return is_positive(_radius)?_radius:_radius_parm; }
/// set_radius - sets circle radius in cm
void set_radius(float radius_cm);
/// set_radius_cm - sets circle radius in cm
void set_radius_cm(float radius_cm);
/// get_rate - returns target rate in deg/sec held in RATE parameter
float get_rate() const { return _rate; }