@ -1063,11 +1063,23 @@ int UASWaypointManager::getFrameRecommendation()
float UASWaypointManager::getAcceptanceRadiusRecommendation()
{
if (waypointsEditable.count() > 0) {
if (waypointsEditable.count() > 0)
return waypointsEditable.last()->getAcceptanceRadius();
} else {
return 10.0f;
}
else
if (uas->isRotaryWing())
return UASInterface::WAYPOINT_RADIUS_DEFAULT_ROTARY_WING;
else if (uas->isFixedWing())
return UASInterface::WAYPOINT_RADIUS_DEFAULT_FIXED_WING;
float UASWaypointManager::getHomeAltitudeOffsetDefault()
@ -269,16 +269,6 @@ void WaypointList::addEditable(bool onCurrentPosition)
// Create waypoint with last frame
Waypoint *last = waypoints.last();
wp = WPM->createWaypoint();
if (uas)
if (uas->isRotaryWing()) {
wp->setAcceptanceRadius(UASInterface::WAYPOINT_RADIUS_DEFAULT_ROTARY_WING);
wp->setAcceptanceRadius(UASInterface::WAYPOINT_RADIUS_DEFAULT_FIXED_WING);
// wp->blockSignals(true);
MAV_FRAME frame = (MAV_FRAME)last->getFrame();
wp->setFrame(frame);