From 942d4a5722c06b1805db732bf968a44f56427f9a Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Tue, 13 Jun 2017 11:06:17 -0700 Subject: [PATCH] Default turnaround for multi-rotor to 5 meters --- src/MissionManager/SurveyMissionItem.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MissionManager/SurveyMissionItem.cc b/src/MissionManager/SurveyMissionItem.cc index f79836fd8f..d612ae4a72 100644 --- a/src/MissionManager/SurveyMissionItem.cc +++ b/src/MissionManager/SurveyMissionItem.cc @@ -108,9 +108,10 @@ SurveyMissionItem::SurveyMissionItem(Vehicle* vehicle, QObject* parent) { _editorQml = "qrc:/qml/SurveyItemEditor.qml"; + // If the user hasn't changed turnaround from the default (which is a fixed wing default) and we are multi-rotor set the multi-rotor default. // NULL check since object creation during unit testing passes NULL for vehicle - if (_vehicle && _vehicle->multiRotor()) { - _turnaroundDistFact.setRawValue(0); + if (_vehicle && _vehicle->multiRotor() && _turnaroundDistFact.rawValue().toDouble() == _turnaroundDistFact.rawDefaultValue().toDouble()) { + _turnaroundDistFact.setRawValue(5); } connect(&_gridSpacingFact, &Fact::valueChanged, this, &SurveyMissionItem::_generateGrid); -- GitLab