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
6fa7ef2d
Unverified
Commit
6fa7ef2d
authored
Dec 25, 2019
by
Don Gagne
Committed by
GitHub
Dec 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8173 from DonLakeFlyer/Fixes
Fixes
parents
16baab6f
b308d72d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
4 deletions
+27
-4
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+9
-1
ParameterEditor.qml
src/QmlControls/ParameterEditor.qml
+0
-1
FlyView.SettingsGroup.json
src/Settings/FlyView.SettingsGroup.json
+6
-0
FlyViewSettings.cc
src/Settings/FlyViewSettings.cc
+1
-0
FlyViewSettings.h
src/Settings/FlyViewSettings.h
+1
-0
SetupView.qml
src/VehicleSetup/SetupView.qml
+2
-2
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+8
-0
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
6fa7ef2d
...
@@ -48,6 +48,8 @@ FlightMap {
...
@@ -48,6 +48,8 @@ FlightMap {
property
var
_activeVehicleCoordinate
:
activeVehicle
?
activeVehicle
.
coordinate
:
QtPositioning
.
coordinate
()
property
var
_activeVehicleCoordinate
:
activeVehicle
?
activeVehicle
.
coordinate
:
QtPositioning
.
coordinate
()
property
real
_toolButtonTopMargin
:
parent
.
height
-
mainWindow
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
/
2
)
property
real
_toolButtonTopMargin
:
parent
.
height
-
mainWindow
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
/
2
)
property
bool
_airspaceEnabled
:
QGroundControl
.
airmapSupported
?
(
QGroundControl
.
settingsManager
.
airMapSettings
.
enableAirMap
.
rawValue
&&
QGroundControl
.
airspaceManager
.
connected
):
false
property
bool
_airspaceEnabled
:
QGroundControl
.
airmapSupported
?
(
QGroundControl
.
settingsManager
.
airMapSettings
.
enableAirMap
.
rawValue
&&
QGroundControl
.
airspaceManager
.
connected
):
false
property
var
_flyViewSettings
:
QGroundControl
.
settingsManager
.
flyViewSettings
property
bool
_keepMapCenteredOnVehicle
:
_flyViewSettings
.
keepMapCenteredOnVehicle
.
rawValue
property
bool
_disableVehicleTracking
:
false
property
bool
_disableVehicleTracking
:
false
property
bool
_keepVehicleCentered
:
mainIsMap
?
false
:
true
property
bool
_keepVehicleCentered
:
mainIsMap
?
false
:
true
...
@@ -129,7 +131,7 @@ FlightMap {
...
@@ -129,7 +131,7 @@ FlightMap {
function
updateMapToVehiclePosition
()
{
function
updateMapToVehiclePosition
()
{
// We let FlightMap handle first vehicle position
// We let FlightMap handle first vehicle position
if
(
firstVehiclePositionReceived
&&
_activeVehicleCoordinate
.
isValid
&&
!
_disableVehicleTracking
)
{
if
(
!
_keepMapCenteredOnVehicle
&&
firstVehiclePositionReceived
&&
_activeVehicleCoordinate
.
isValid
&&
!
_disableVehicleTracking
)
{
if
(
_keepVehicleCentered
)
{
if
(
_keepVehicleCentered
)
{
flightMap
.
center
=
_activeVehicleCoordinate
flightMap
.
center
=
_activeVehicleCoordinate
}
else
{
}
else
{
...
@@ -140,6 +142,12 @@ FlightMap {
...
@@ -140,6 +142,12 @@ FlightMap {
}
}
}
}
on_ActiveVehicleCoordinateChanged
:
{
if
(
_keepMapCenteredOnVehicle
&&
_activeVehicleCoordinate
.
isValid
&&
!
_disableVehicleTracking
)
{
flightMap
.
center
=
_activeVehicleCoordinate
}
}
Timer
{
Timer
{
id
:
panRecenterTimer
id
:
panRecenterTimer
interval
:
10000
interval
:
10000
...
...
src/QmlControls/ParameterEditor.qml
View file @
6fa7ef2d
...
@@ -107,7 +107,6 @@ Item {
...
@@ -107,7 +107,6 @@ Item {
}
}
QGCMenuItem
{
QGCMenuItem
{
text
:
qsTr
(
"
Reset all to firmware's defaults
"
)
text
:
qsTr
(
"
Reset all to firmware's defaults
"
)
visible
:
!
activeVehicle
.
apmFirmware
onTriggered
:
mainWindow
.
showComponentDialog
(
resetToDefaultConfirmComponent
,
qsTr
(
"
Reset All
"
),
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Cancel
|
StandardButton
.
Reset
)
onTriggered
:
mainWindow
.
showComponentDialog
(
resetToDefaultConfirmComponent
,
qsTr
(
"
Reset All
"
),
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Cancel
|
StandardButton
.
Reset
)
}
}
QGCMenuItem
{
QGCMenuItem
{
...
...
src/Settings/FlyView.SettingsGroup.json
View file @
6fa7ef2d
...
@@ -37,6 +37,12 @@
...
@@ -37,6 +37,12 @@
"type"
:
"bool"
,
"type"
:
"bool"
,
"defaultValue"
:
false
"defaultValue"
:
false
},
},
{
"name"
:
"keepMapCenteredOnVehicle"
,
"shortDescription"
:
"Keep map centered on vehicle"
,
"type"
:
"bool"
,
"defaultValue"
:
false
},
{
{
"name"
:
"maxGoToLocationDistance"
,
"name"
:
"maxGoToLocationDistance"
,
"shortDescription"
:
"Maximum distance allowed for Go To Location."
,
"shortDescription"
:
"Maximum distance allowed for Go To Location."
,
...
...
src/Settings/FlyViewSettings.cc
View file @
6fa7ef2d
...
@@ -24,3 +24,4 @@ DECLARE_SETTINGSFACT(FlyViewSettings, alternateInstrumentPanel)
...
@@ -24,3 +24,4 @@ DECLARE_SETTINGSFACT(FlyViewSettings, alternateInstrumentPanel)
DECLARE_SETTINGSFACT
(
FlyViewSettings
,
showAdditionalIndicatorsCompass
)
DECLARE_SETTINGSFACT
(
FlyViewSettings
,
showAdditionalIndicatorsCompass
)
DECLARE_SETTINGSFACT
(
FlyViewSettings
,
lockNoseUpCompass
)
DECLARE_SETTINGSFACT
(
FlyViewSettings
,
lockNoseUpCompass
)
DECLARE_SETTINGSFACT
(
FlyViewSettings
,
maxGoToLocationDistance
)
DECLARE_SETTINGSFACT
(
FlyViewSettings
,
maxGoToLocationDistance
)
DECLARE_SETTINGSFACT
(
FlyViewSettings
,
keepMapCenteredOnVehicle
)
src/Settings/FlyViewSettings.h
View file @
6fa7ef2d
...
@@ -26,4 +26,5 @@ public:
...
@@ -26,4 +26,5 @@ public:
DEFINE_SETTINGFACT
(
showAdditionalIndicatorsCompass
)
DEFINE_SETTINGFACT
(
showAdditionalIndicatorsCompass
)
DEFINE_SETTINGFACT
(
lockNoseUpCompass
)
DEFINE_SETTINGFACT
(
lockNoseUpCompass
)
DEFINE_SETTINGFACT
(
maxGoToLocationDistance
)
DEFINE_SETTINGFACT
(
maxGoToLocationDistance
)
DEFINE_SETTINGFACT
(
keepMapCenteredOnVehicle
)
};
};
src/VehicleSetup/SetupView.qml
View file @
6fa7ef2d
...
@@ -257,7 +257,7 @@ Rectangle {
...
@@ -257,7 +257,7 @@ Rectangle {
setupIndicator
:
false
setupIndicator
:
false
text
:
qsTr
(
"
PX4Flow
"
)
text
:
qsTr
(
"
PX4Flow
"
)
Layout.fillWidth
:
true
Layout.fillWidth
:
true
onClicked
:
showP
X4FlowP
anel
(
this
,
"
PX4FlowSensor.qml
"
)
onClicked
:
showPanel
(
this
,
"
PX4FlowSensor.qml
"
)
}
}
SubMenuButton
{
SubMenuButton
{
...
@@ -268,7 +268,7 @@ Rectangle {
...
@@ -268,7 +268,7 @@ Rectangle {
visible
:
_fullParameterVehicleAvailable
&&
joystickManager
.
joysticks
.
length
!==
0
visible
:
_fullParameterVehicleAvailable
&&
joystickManager
.
joysticks
.
length
!==
0
text
:
qsTr
(
"
Joystick
"
)
text
:
qsTr
(
"
Joystick
"
)
Layout.fillWidth
:
true
Layout.fillWidth
:
true
onClicked
:
show
Joystick
Panel
(
this
,
"
JoystickConfig.qml
"
)
onClicked
:
showPanel
(
this
,
"
JoystickConfig.qml
"
)
}
}
Repeater
{
Repeater
{
...
...
src/ui/preferences/GeneralSettings.qml
View file @
6fa7ef2d
...
@@ -468,6 +468,14 @@ Rectangle {
...
@@ -468,6 +468,14 @@ Rectangle {
property
Fact
_useChecklist
:
QGroundControl
.
settingsManager
.
appSettings
.
useChecklist
property
Fact
_useChecklist
:
QGroundControl
.
settingsManager
.
appSettings
.
useChecklist
}
}
FactCheckBox
{
text
:
qsTr
(
"
Keep Map Centered On Vehicle
"
)
fact
:
_keepMapCenteredOnVehicle
visible
:
_keepMapCenteredOnVehicle
.
visible
property
Fact
_keepMapCenteredOnVehicle
:
QGroundControl
.
settingsManager
.
flyViewSettings
.
keepMapCenteredOnVehicle
}
FactCheckBox
{
FactCheckBox
{
text
:
qsTr
(
"
Show Telemetry Log Replay Status Bar
"
)
text
:
qsTr
(
"
Show Telemetry Log Replay Status Bar
"
)
fact
:
_showLogReplayStatusBar
fact
:
_showLogReplayStatusBar
...
...
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