Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
942d4a57
Commit
942d4a57
authored
Jun 13, 2017
by
DonLakeFlyer
Browse files
Default turnaround for multi-rotor to 5 meters
parent
d1c2f3fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MissionManager/SurveyMissionItem.cc
View file @
942d4a57
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment