Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
981e09ce
Unverified
Commit
981e09ce
authored
Aug 15, 2018
by
Don Gagne
Committed by
GitHub
Aug 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6801 from DonLakeFlyer/StableMasterMerge
Bring master up to date with Stable 3.4
parents
0ed5e50f
c6ade1a0
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
75 additions
and
35 deletions
+75
-35
qgroundcontrol_installer.nsi
deploy/qgroundcontrol_installer.nsi
+7
-2
SensorsSetup.qml
src/AutoPilotPlugins/PX4/SensorsSetup.qml
+14
-8
PX4FirmwarePlugin.cc
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
+1
-1
MissionController.cc
src/MissionManager/MissionController.cc
+1
-3
SimpleMissionItem.cc
src/MissionManager/SimpleMissionItem.cc
+24
-7
SimpleMissionItem.h
src/MissionManager/SimpleMissionItem.h
+1
-3
TransectStyleComplexItem.cc
src/MissionManager/TransectStyleComplexItem.cc
+20
-5
TransectStyleComplexItem.h
src/MissionManager/TransectStyleComplexItem.h
+2
-2
MissionSettingsEditor.qml
src/PlanView/MissionSettingsEditor.qml
+4
-3
TerrainQuery.cc
src/Terrain/TerrainQuery.cc
+1
-1
No files found.
deploy/qgroundcontrol_installer.nsi
View file @
981e09ce
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
!include LogicLib.nsh
!include LogicLib.nsh
!include Win\COM.nsh
!include Win\COM.nsh
!include Win\Propkey.nsh
!include Win\Propkey.nsh
!include "FileFunc.nsh"
!macro DemoteShortCut target
!macro DemoteShortCut target
!insertmacro ComHlpr_CreateInProcInstance ${CLSID_ShellLink} ${IID_IShellLink} r0 ""
!insertmacro ComHlpr_CreateInProcInstance ${CLSID_ShellLink} ${IID_IShellLink} r0 ""
...
@@ -61,7 +62,7 @@ Section
...
@@ -61,7 +62,7 @@ Section
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString"
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString"
StrCmp $R0 "" doinstall
StrCmp $R0 "" doinstall
ExecWait "$R0 /S _?=$INSTDIR"
ExecWait "$R0 /S _?=$INSTDIR
-LEAVE_DATA=1
"
IntCmp $0 0 doinstall
IntCmp $0 0 doinstall
MessageBox MB_OK|MB_ICONEXCLAMATION \
MessageBox MB_OK|MB_ICONEXCLAMATION \
...
@@ -104,12 +105,16 @@ done:
...
@@ -104,12 +105,16 @@ done:
SectionEnd
SectionEnd
Section "Uninstall"
Section "Uninstall"
${GetParameters} $R0
${GetOptions} $R0 "-LEAVE_DATA=" $R1
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
SetShellVarContext all
SetShellVarContext all
RMDir /r /REBOOTOK $INSTDIR
RMDir /r /REBOOTOK $INSTDIR
RMDir /r /REBOOTOK "$SMPROGRAMS\$StartMenuFolder\"
RMDir /r /REBOOTOK "$SMPROGRAMS\$StartMenuFolder\"
SetShellVarContext current
SetShellVarContext current
RMDir /r /REBOOTOK "$APPDATA\${ORGNAME}\"
${If} $R1 != 1
RMDir /r /REBOOTOK "$APPDATA\${ORGNAME}\"
${Endif}
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\${EXENAME}.exe"
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\${EXENAME}.exe"
SectionEnd
SectionEnd
...
...
src/AutoPilotPlugins/PX4/SensorsSetup.qml
View file @
981e09ce
...
@@ -132,10 +132,8 @@ Item {
...
@@ -132,10 +132,8 @@ Item {
onResetStatusTextArea
:
statusLog
.
text
=
statusTextAreaDefaultText
onResetStatusTextArea
:
statusLog
.
text
=
statusTextAreaDefaultText
onMagCalComplete
:
{
onMagCalComplete
:
{
//if (!_sensorsHaveFixedOrientation && (showCompass0Rot || showCompass1Rot || showCompass2Rot)) {
setOrientationsDialogShowBoardOrientation
=
false
setOrientationsDialogShowBoardOrientation
=
false
showDialog
(
setOrientationsDialogComponent
,
qsTr
(
"
Compass Calibration Complete
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
)
showDialog
(
setOrientationsDialogComponent
,
qsTr
(
"
Compass Calibration Complete
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
)
//}
}
}
onWaitingForCancelChanged
:
{
onWaitingForCancelChanged
:
{
...
@@ -255,7 +253,9 @@ Item {
...
@@ -255,7 +253,9 @@ Item {
QGCLabel
{
QGCLabel
{
width
:
parent
.
width
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Set your compass orientations below and the make sure to reboot the vehicle prior to flight.
"
)
text
:
_sensorsHaveFixedOrientation
?
qsTr
(
"
Make sure to reboot the vehicle prior to flight.
"
)
:
qsTr
(
"
Set your compass orientations below and the make sure to reboot the vehicle prior to flight.
"
)
}
}
QGCButton
{
QGCButton
{
...
@@ -270,6 +270,7 @@ Item {
...
@@ -270,6 +270,7 @@ Item {
width
:
parent
.
width
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
text
:
boardRotationText
text
:
boardRotationText
visible
:
!
_sensorsHaveFixedOrientation
}
}
Column
{
Column
{
...
@@ -287,8 +288,10 @@ Item {
...
@@ -287,8 +288,10 @@ Item {
}
}
}
}
// Compass 0 rotation
Column
{
Column
{
// Compass 0 rotation
visible
:
!
_sensorsHaveFixedOrientation
Component
{
Component
{
id
:
compass0ComponentLabel2
id
:
compass0ComponentLabel2
...
@@ -312,8 +315,10 @@ Item {
...
@@ -312,8 +315,10 @@ Item {
Loader
{
sourceComponent
:
showCompass0Rot
?
compass0ComponentCombo2
:
null
}
Loader
{
sourceComponent
:
showCompass0Rot
?
compass0ComponentCombo2
:
null
}
}
}
// Compass 1 rotation
Column
{
Column
{
// Compass 1 rotation
visible
:
!
_sensorsHaveFixedOrientation
Component
{
Component
{
id
:
compass1ComponentLabel2
id
:
compass1ComponentLabel2
...
@@ -337,10 +342,11 @@ Item {
...
@@ -337,10 +342,11 @@ Item {
Loader
{
sourceComponent
:
showCompass1Rot
?
compass1ComponentCombo2
:
null
}
Loader
{
sourceComponent
:
showCompass1Rot
?
compass1ComponentCombo2
:
null
}
}
}
// Compass 2 rotation
Column
{
Column
{
visible
:
!
_sensorsHaveFixedOrientation
spacing
:
ScreenTools
.
defaultFontPixelWidth
spacing
:
ScreenTools
.
defaultFontPixelWidth
// Compass 2 rotation
Component
{
Component
{
id
:
compass2ComponentLabel2
id
:
compass2ComponentLabel2
...
...
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
View file @
981e09ce
...
@@ -285,7 +285,7 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void)
...
@@ -285,7 +285,7 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void)
list
<<
MAV_CMD_NAV_WAYPOINT
list
<<
MAV_CMD_NAV_WAYPOINT
<<
MAV_CMD_NAV_LOITER_UNLIM
<<
MAV_CMD_NAV_LOITER_TIME
<<
MAV_CMD_NAV_LOITER_TO_ALT
<<
MAV_CMD_NAV_LOITER_UNLIM
<<
MAV_CMD_NAV_LOITER_TIME
<<
MAV_CMD_NAV_LOITER_TO_ALT
<<
MAV_CMD_NAV_LAND
<<
MAV_CMD_NAV_TAKEOFF
<<
MAV_CMD_NAV_LAND
<<
MAV_CMD_NAV_TAKEOFF
<<
MAV_CMD_NAV_RETURN_TO_LAUNCH
<<
MAV_CMD_DO_JUMP
<<
MAV_CMD_DO_JUMP
<<
MAV_CMD_DO_VTOL_TRANSITION
<<
MAV_CMD_NAV_VTOL_TAKEOFF
<<
MAV_CMD_NAV_VTOL_LAND
<<
MAV_CMD_DO_VTOL_TRANSITION
<<
MAV_CMD_NAV_VTOL_TAKEOFF
<<
MAV_CMD_NAV_VTOL_LAND
<<
MAV_CMD_DO_DIGICAM_CONTROL
<<
MAV_CMD_DO_DIGICAM_CONTROL
...
...
src/MissionManager/MissionController.cc
View file @
981e09ce
...
@@ -349,13 +349,12 @@ int MissionController::insertSimpleMissionItem(QGeoCoordinate coordinate, int i)
...
@@ -349,13 +349,12 @@ int MissionController::insertSimpleMissionItem(QGeoCoordinate coordinate, int i)
newItem
->
setCoordinate
(
coordinate
);
newItem
->
setCoordinate
(
coordinate
);
newItem
->
setCommand
(
MAV_CMD_NAV_WAYPOINT
);
newItem
->
setCommand
(
MAV_CMD_NAV_WAYPOINT
);
_initVisualItem
(
newItem
);
_initVisualItem
(
newItem
);
if
(
_visualItems
->
count
()
==
1
)
{
if
(
_visualItems
->
count
()
==
1
&&
(
_controllerVehicle
->
fixedWing
()
||
_controllerVehicle
->
vtol
()
||
_controllerVehicle
->
multiRotor
())
)
{
MAV_CMD
takeoffCmd
=
_controllerVehicle
->
vtol
()
?
MAV_CMD_NAV_VTOL_TAKEOFF
:
MAV_CMD_NAV_TAKEOFF
;
MAV_CMD
takeoffCmd
=
_controllerVehicle
->
vtol
()
?
MAV_CMD_NAV_VTOL_TAKEOFF
:
MAV_CMD_NAV_TAKEOFF
;
if
(
_controllerVehicle
->
firmwarePlugin
()
->
supportedMissionCommands
().
contains
((
MAV_CMD
)
takeoffCmd
))
{
if
(
_controllerVehicle
->
firmwarePlugin
()
->
supportedMissionCommands
().
contains
((
MAV_CMD
)
takeoffCmd
))
{
newItem
->
setCommand
(
takeoffCmd
);
newItem
->
setCommand
(
takeoffCmd
);
}
}
}
}
newItem
->
setDefaultsForCommand
();
if
(
newItem
->
specifiesAltitude
())
{
if
(
newItem
->
specifiesAltitude
())
{
double
prevAltitude
;
double
prevAltitude
;
int
prevAltitudeMode
;
int
prevAltitudeMode
;
...
@@ -382,7 +381,6 @@ int MissionController::insertROIMissionItem(QGeoCoordinate coordinate, int i)
...
@@ -382,7 +381,6 @@ int MissionController::insertROIMissionItem(QGeoCoordinate coordinate, int i)
MAV_CMD_DO_SET_ROI_LOCATION
:
MAV_CMD_DO_SET_ROI_LOCATION
:
MAV_CMD_DO_SET_ROI
));
MAV_CMD_DO_SET_ROI
));
_initVisualItem
(
newItem
);
_initVisualItem
(
newItem
);
newItem
->
setDefaultsForCommand
();
newItem
->
setCoordinate
(
coordinate
);
newItem
->
setCoordinate
(
coordinate
);
double
prevAltitude
;
double
prevAltitude
;
...
...
src/MissionManager/SimpleMissionItem.cc
View file @
981e09ce
...
@@ -78,7 +78,7 @@ SimpleMissionItem::SimpleMissionItem(Vehicle* vehicle, bool flyView, QObject* pa
...
@@ -78,7 +78,7 @@ SimpleMissionItem::SimpleMissionItem(Vehicle* vehicle, bool flyView, QObject* pa
_connectSignals
();
_connectSignals
();
_updateOptionalSections
();
_updateOptionalSections
();
setDefaultsForCommand
();
_
setDefaultsForCommand
();
_rebuildFacts
();
_rebuildFacts
();
setDirty
(
false
);
setDirty
(
false
);
...
@@ -213,7 +213,7 @@ void SimpleMissionItem::_connectSignals(void)
...
@@ -213,7 +213,7 @@ void SimpleMissionItem::_connectSignals(void)
connect
(
&
_missionItem
.
_frameFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
_sendFriendlyEditAllowedChanged
);
connect
(
&
_missionItem
.
_frameFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
_sendFriendlyEditAllowedChanged
);
// A command change triggers a number of other changes as well.
// A command change triggers a number of other changes as well.
connect
(
&
_missionItem
.
_commandFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
setDefaultsForCommand
);
connect
(
&
_missionItem
.
_commandFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
_
setDefaultsForCommand
);
connect
(
&
_missionItem
.
_commandFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
commandNameChanged
);
connect
(
&
_missionItem
.
_commandFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
commandNameChanged
);
connect
(
&
_missionItem
.
_commandFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
commandDescriptionChanged
);
connect
(
&
_missionItem
.
_commandFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
commandDescriptionChanged
);
connect
(
&
_missionItem
.
_commandFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
abbreviationChanged
);
connect
(
&
_missionItem
.
_commandFact
,
&
Fact
::
valueChanged
,
this
,
&
SimpleMissionItem
::
abbreviationChanged
);
...
@@ -729,15 +729,32 @@ bool SimpleMissionItem::readyForSave(void) const
...
@@ -729,15 +729,32 @@ bool SimpleMissionItem::readyForSave(void) const
return
!
specifiesAltitude
()
||
!
qIsNaN
(
_missionItem
.
_param7Fact
.
rawValue
().
toDouble
());
return
!
specifiesAltitude
()
||
!
qIsNaN
(
_missionItem
.
_param7Fact
.
rawValue
().
toDouble
());
}
}
void
SimpleMissionItem
::
setDefaultsForCommand
(
void
)
void
SimpleMissionItem
::
_
setDefaultsForCommand
(
void
)
{
{
// We set these global defaults first, then if there are param defaults they will get reset
// First reset params 1-4 to 0, we leave 5-7 alone to preserve any previous location information on command change
_missionItem
.
_param1Fact
.
setRawValue
(
0
);
_missionItem
.
_param2Fact
.
setRawValue
(
0
);
_missionItem
.
_param3Fact
.
setRawValue
(
0
);
_missionItem
.
_param4Fact
.
setRawValue
(
0
);
if
(
!
specifiesCoordinate
()
&&
!
isStandaloneCoordinate
())
{
// No need to carry across previous lat/lon
_missionItem
.
_param5Fact
.
setRawValue
(
0
);
_missionItem
.
_param6Fact
.
setRawValue
(
0
);
}
// Set global defaults first, then if there are param defaults they will get reset
_altitudeMode
=
AltitudeRelative
;
_altitudeMode
=
AltitudeRelative
;
emit
altitudeModeChanged
();
emit
altitudeModeChanged
();
double
defaultAlt
=
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
defaultMissionItemAltitude
()
->
rawValue
().
toDouble
();
_altitudeFact
.
setRawValue
(
defaultAlt
);
_missionItem
.
_param7Fact
.
setRawValue
(
defaultAlt
);
_amslAltAboveTerrainFact
.
setRawValue
(
qQNaN
());
_amslAltAboveTerrainFact
.
setRawValue
(
qQNaN
());
if
(
specifiesCoordinate
()
||
isStandaloneCoordinate
()
||
specifiesAltitudeOnly
())
{
double
defaultAlt
=
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
defaultMissionItemAltitude
()
->
rawValue
().
toDouble
();
_altitudeFact
.
setRawValue
(
defaultAlt
);
_missionItem
.
_param7Fact
.
setRawValue
(
defaultAlt
);
}
else
{
_altitudeFact
.
setRawValue
(
0
);
_missionItem
.
_param7Fact
.
setRawValue
(
0
);
}
MAV_CMD
command
=
(
MAV_CMD
)
this
->
command
();
MAV_CMD
command
=
(
MAV_CMD
)
this
->
command
();
const
MissionCommandUIInfo
*
uiInfo
=
_commandTree
->
getUIInfo
(
_vehicle
,
command
);
const
MissionCommandUIInfo
*
uiInfo
=
_commandTree
->
getUIInfo
(
_vehicle
,
command
);
...
...
src/MissionManager/SimpleMissionItem.h
View file @
981e09ce
...
@@ -134,9 +134,6 @@ public:
...
@@ -134,9 +134,6 @@ public:
int
lastSequenceNumber
(
void
)
const
final
;
int
lastSequenceNumber
(
void
)
const
final
;
void
save
(
QJsonArray
&
missionItems
)
final
;
void
save
(
QJsonArray
&
missionItems
)
final
;
public
slots
:
void
setDefaultsForCommand
(
void
);
signals:
signals:
void
commandChanged
(
int
command
);
void
commandChanged
(
int
command
);
void
friendlyEditAllowedChanged
(
bool
friendlyEditAllowed
);
void
friendlyEditAllowedChanged
(
bool
friendlyEditAllowed
);
...
@@ -160,6 +157,7 @@ private slots:
...
@@ -160,6 +157,7 @@ private slots:
void
_rebuildFacts
(
void
);
void
_rebuildFacts
(
void
);
void
_rebuildTextFieldFacts
(
void
);
void
_rebuildTextFieldFacts
(
void
);
void
_possibleAdditionalTimeDelayChanged
(
void
);
void
_possibleAdditionalTimeDelayChanged
(
void
);
void
_setDefaultsForCommand
(
void
);
private:
private:
void
_connectSignals
(
void
);
void
_connectSignals
(
void
);
...
...
src/MissionManager/TransectStyleComplexItem.cc
View file @
981e09ce
...
@@ -385,11 +385,6 @@ void TransectStyleComplexItem::_rebuildTransects(void)
...
@@ -385,11 +385,6 @@ void TransectStyleComplexItem::_rebuildTransects(void)
void
TransectStyleComplexItem
::
_queryTransectsPathHeightInfo
(
void
)
void
TransectStyleComplexItem
::
_queryTransectsPathHeightInfo
(
void
)
{
{
_transectsPathHeightInfo
.
clear
();
_transectsPathHeightInfo
.
clear
();
if
(
_terrainPolyPathQuery
)
{
// Toss previous query
_terrainPolyPathQuery
->
deleteLater
();
_terrainPolyPathQuery
=
NULL
;
}
if
(
_transects
.
count
())
{
if
(
_transects
.
count
())
{
// We don't actually send the query until this timer times out. This way we only send
// We don't actually send the query until this timer times out. This way we only send
...
@@ -400,6 +395,20 @@ void TransectStyleComplexItem::_queryTransectsPathHeightInfo(void)
...
@@ -400,6 +395,20 @@ void TransectStyleComplexItem::_queryTransectsPathHeightInfo(void)
void
TransectStyleComplexItem
::
_reallyQueryTransectsPathHeightInfo
(
void
)
void
TransectStyleComplexItem
::
_reallyQueryTransectsPathHeightInfo
(
void
)
{
{
// Clear any previous query
if
(
_terrainPolyPathQuery
)
{
// FIXME: We should really be blowing away any previous query here. But internally that is difficult to implement so instead we let
// it complete and drop the results.
#if 0
// Toss previous query
_terrainPolyPathQuery->deleteLater();
#else
// Let the signal fall on the floor
disconnect
(
_terrainPolyPathQuery
,
&
TerrainPolyPathQuery
::
terrainDataReceived
,
this
,
&
TransectStyleComplexItem
::
_polyPathTerrainData
);
#endif
_terrainPolyPathQuery
=
NULL
;
}
// Append all transects into a single PolyPath query
// Append all transects into a single PolyPath query
QList
<
QGeoCoordinate
>
transectPoints
;
QList
<
QGeoCoordinate
>
transectPoints
;
...
@@ -436,6 +445,12 @@ void TransectStyleComplexItem::_polyPathTerrainData(bool success, const QList<Te
...
@@ -436,6 +445,12 @@ void TransectStyleComplexItem::_polyPathTerrainData(bool success, const QList<Te
// Now that we have terrain data we can adjust
// Now that we have terrain data we can adjust
_adjustTransectsForTerrain
();
_adjustTransectsForTerrain
();
}
}
if
(
_terrainPolyPathQuery
!=
sender
())
{
qWarning
()
<<
"TransectStyleComplexItem::_polyPathTerrainData _terrainPolyPathQuery != sender()"
;
}
disconnect
(
_terrainPolyPathQuery
,
&
TerrainPolyPathQuery
::
terrainDataReceived
,
this
,
&
TransectStyleComplexItem
::
_polyPathTerrainData
);
_terrainPolyPathQuery
=
NULL
;
}
}
bool
TransectStyleComplexItem
::
readyForSave
(
void
)
const
bool
TransectStyleComplexItem
::
readyForSave
(
void
)
const
...
...
src/MissionManager/TransectStyleComplexItem.h
View file @
981e09ce
...
@@ -54,8 +54,8 @@ public:
...
@@ -54,8 +54,8 @@ public:
Fact
*
hoverAndCapture
(
void
)
{
return
&
_hoverAndCaptureFact
;
}
Fact
*
hoverAndCapture
(
void
)
{
return
&
_hoverAndCaptureFact
;
}
Fact
*
refly90Degrees
(
void
)
{
return
&
_refly90DegreesFact
;
}
Fact
*
refly90Degrees
(
void
)
{
return
&
_refly90DegreesFact
;
}
Fact
*
terrainAdjustTolerance
(
void
)
{
return
&
_terrainAdjustToleranceFact
;
}
Fact
*
terrainAdjustTolerance
(
void
)
{
return
&
_terrainAdjustToleranceFact
;
}
Fact
*
terrainAdjustMaxDescentRate
(
void
)
{
return
&
_terrainAdjustMax
Climb
RateFact
;
}
Fact
*
terrainAdjustMaxDescentRate
(
void
)
{
return
&
_terrainAdjustMax
Descent
RateFact
;
}
Fact
*
terrainAdjustMaxClimbRate
(
void
)
{
return
&
_terrainAdjustMax
Descent
RateFact
;
}
Fact
*
terrainAdjustMaxClimbRate
(
void
)
{
return
&
_terrainAdjustMax
Climb
RateFact
;
}
const
Fact
*
hoverAndCapture
(
void
)
const
{
return
&
_hoverAndCaptureFact
;
}
const
Fact
*
hoverAndCapture
(
void
)
const
{
return
&
_hoverAndCaptureFact
;
}
...
...
src/PlanView/MissionSettingsEditor.qml
View file @
981e09ce
...
@@ -36,8 +36,9 @@ Rectangle {
...
@@ -36,8 +36,9 @@ Rectangle {
property
var
_fileExtension
:
QGroundControl
.
settingsManager
.
appSettings
.
missionFileExtension
property
var
_fileExtension
:
QGroundControl
.
settingsManager
.
appSettings
.
missionFileExtension
property
var
_appSettings
:
QGroundControl
.
settingsManager
.
appSettings
property
var
_appSettings
:
QGroundControl
.
settingsManager
.
appSettings
property
bool
_waypointsOnlyMode
:
QGroundControl
.
corePlugin
.
options
.
missionWaypointsOnly
property
bool
_waypointsOnlyMode
:
QGroundControl
.
corePlugin
.
options
.
missionWaypointsOnly
property
bool
_showCameraSection
:
!
_waypointsOnlyMode
||
QGroundControl
.
corePlugin
.
showAdvancedUI
property
bool
_showCameraSection
:
(
!
_waypointsOnlyMode
||
QGroundControl
.
corePlugin
.
showAdvancedUI
)
&&
!
_missionVehicle
.
apmFirmware
property
bool
_simpleMissionStart
:
QGroundControl
.
corePlugin
.
options
.
showSimpleMissionStart
property
bool
_simpleMissionStart
:
QGroundControl
.
corePlugin
.
options
.
showSimpleMissionStart
property
bool
_showFlightSpeed
:
!
_missionVehicle
.
vtol
&&
!
_simpleMissionStart
&&
!
_missionVehicle
.
apmFirmware
readonly
property
string
_firmwareLabel
:
qsTr
(
"
Firmware
"
)
readonly
property
string
_firmwareLabel
:
qsTr
(
"
Firmware
"
)
readonly
property
string
_vehicleLabel
:
qsTr
(
"
Vehicle
"
)
readonly
property
string
_vehicleLabel
:
qsTr
(
"
Vehicle
"
)
...
@@ -72,14 +73,14 @@ Rectangle {
...
@@ -72,14 +73,14 @@ Rectangle {
QGCCheckBox
{
QGCCheckBox
{
id
:
flightSpeedCheckBox
id
:
flightSpeedCheckBox
text
:
qsTr
(
"
Flight speed
"
)
text
:
qsTr
(
"
Flight speed
"
)
visible
:
!
_missionVehicle
.
vtol
&&
!
_simpleMissionStart
visible
:
_showFlightSpeed
checked
:
missionItem
.
speedSection
.
specifyFlightSpeed
checked
:
missionItem
.
speedSection
.
specifyFlightSpeed
onClicked
:
missionItem
.
speedSection
.
specifyFlightSpeed
=
checked
onClicked
:
missionItem
.
speedSection
.
specifyFlightSpeed
=
checked
}
}
FactTextField
{
FactTextField
{
Layout.fillWidth
:
true
Layout.fillWidth
:
true
fact
:
missionItem
.
speedSection
.
flightSpeed
fact
:
missionItem
.
speedSection
.
flightSpeed
visible
:
flightSpeedCheckBox
.
visible
visible
:
_showFlightSpeed
enabled
:
flightSpeedCheckBox
.
checked
enabled
:
flightSpeedCheckBox
.
checked
}
}
}
}
...
...
src/Terrain/TerrainQuery.cc
View file @
981e09ce
...
@@ -416,7 +416,7 @@ bool TerrainTileManager::_getAltitudesForCoordinates(const QList<QGeoCoordinate>
...
@@ -416,7 +416,7 @@ bool TerrainTileManager::_getAltitudesForCoordinates(const QList<QGeoCoordinate>
error
=
true
;
error
=
true
;
qCWarning
(
TerrainQueryLog
)
<<
"TerrainTileManager::_getAltitudesForCoordinates Internal Error: negative elevation in tile cache"
;
qCWarning
(
TerrainQueryLog
)
<<
"TerrainTileManager::_getAltitudesForCoordinates Internal Error: negative elevation in tile cache"
;
}
else
{
}
else
{
qC
Warnin
g
(
TerrainQueryLog
)
<<
"TerrainTileManager::_getAltitudesForCoordinates returning elevation from tile cache"
<<
elevation
;
qC
Debu
g
(
TerrainQueryLog
)
<<
"TerrainTileManager::_getAltitudesForCoordinates returning elevation from tile cache"
<<
elevation
;
}
}
altitudes
.
push_back
(
elevation
);
altitudes
.
push_back
(
elevation
);
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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