Copter: remove unused waypoint_valid function

This commit is contained in:
Randy Mackay 2013-04-17 21:27:42 +09:00
parent a656b619f5
commit 0b808abbed

View File

@ -203,16 +203,6 @@ static int32_t get_yaw_slew(int32_t current_yaw, int32_t desired_yaw, int16_t de
return wrap_360_cd(current_yaw + constrain(wrap_180_cd(desired_yaw - current_yaw), -deg_per_sec, deg_per_sec));
}
// valid_waypoint - checks if a waypoint has been initialised or not
static bool waypoint_valid(Location &wp)
{
if( wp.lat != 0 || wp.lng != 0 ) {
return true;
}else{
return false;
}
}
//////////////////////////////////////////////////////////
// circle navigation controller