Copter Nav: add accessor for waypoint speed

This commit is contained in:
Randy Mackay 2013-06-01 17:19:05 +09:00
parent 8b87849acd
commit 7a2afb7443

View File

@ -135,6 +135,9 @@ public:
/// set_horizontal_velocity - allows main code to pass target horizontal velocity for wp navigation
void set_horizontal_velocity(float velocity_cms) { _wp_speed_cms = velocity_cms; };
/// get_horizontal_velocity - allows main code to retrieve target horizontal velocity for wp navigation
float get_horizontal_velocity() { return _wp_speed_cms; };
/// get_climb_velocity - returns target climb speed in cm/s during missions
float get_climb_velocity() const { return _wp_speed_up_cms; };