AC_WPNav: rename circle_nav.set_radius to circle_nav.set_radius_cm
This commit is contained in:
parent
7f74714107
commit
e01ca79251
@ -138,7 +138,7 @@ void AC_Circle::set_rate(float deg_per_sec)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// set_circle_rate - set circle rate in degrees per second
|
/// 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);
|
_radius = constrain_float(radius_cm, 0, AC_CIRCLE_RADIUS_MAX);
|
||||||
}
|
}
|
||||||
|
@ -44,8 +44,8 @@ public:
|
|||||||
/// get_radius - returns radius of circle in cm
|
/// get_radius - returns radius of circle in cm
|
||||||
float get_radius() const { return is_positive(_radius)?_radius:_radius_parm; }
|
float get_radius() const { return is_positive(_radius)?_radius:_radius_parm; }
|
||||||
|
|
||||||
/// set_radius - sets circle radius in cm
|
/// set_radius_cm - sets circle radius in cm
|
||||||
void set_radius(float radius_cm);
|
void set_radius_cm(float radius_cm);
|
||||||
|
|
||||||
/// get_rate - returns target rate in deg/sec held in RATE parameter
|
/// get_rate - returns target rate in deg/sec held in RATE parameter
|
||||||
float get_rate() const { return _rate; }
|
float get_rate() const { return _rate; }
|
||||||
|
Loading…
Reference in New Issue
Block a user