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
4a39f75a
Commit
4a39f75a
authored
Jul 06, 2016
by
Don Gagne
Committed by
GitHub
Jul 06, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3734 from DonLakeFlyer/SmallFixes
Center hdop in toolbar, fix goto enabled state handling
parents
d276f239
4210e759
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+6
-4
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+3
-2
Vehicle.cc
src/Vehicle/Vehicle.cc
+1
-1
MainToolBarIndicators.qml
src/ui/toolbar/MainToolBarIndicators.qml
+2
-0
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
4a39f75a
...
...
@@ -126,11 +126,13 @@ FlightMap {
onClicked
:
{
if
(
_activeVehicle
)
{
if
(
_activeVehicle
.
guidedMode
&&
flightWidgets
.
guidedModeBar
.
state
==
"
Shown
"
)
{
_gotoHereCoordinate
=
flightMap
.
toCoordinate
(
Qt
.
point
(
mouse
.
x
,
mouse
.
y
))
flightWidgets
.
guidedModeBar
.
confirmAction
(
flightWidgets
.
guidedModeBar
.
confirmGoTo
)
}
else
{
if
(
flightWidgets
.
guidedModeBar
.
state
!=
"
Shown
"
)
{
flightWidgets
.
guidedModeBar
.
state
=
"
Shown
"
}
else
{
if
(
flightWidgets
.
gotoEnabled
)
{
_gotoHereCoordinate
=
flightMap
.
toCoordinate
(
Qt
.
point
(
mouse
.
x
,
mouse
.
y
))
flightWidgets
.
guidedModeBar
.
confirmAction
(
flightWidgets
.
guidedModeBar
.
confirmGoTo
)
}
}
}
}
...
...
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
4a39f75a
...
...
@@ -25,7 +25,8 @@ import QGroundControl.FlightMap 1.0
Item
{
id
:
_root
property
alias
guidedModeBar
:
_guidedModeBar
property
alias
guidedModeBar
:
_guidedModeBar
property
bool
gotoEnabled
:
_activeVehicle
&&
_activeVehicle
.
guidedMode
&&
_activeVehicle
.
flying
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_isSatellite
:
_mainIsMap
?
(
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
)
:
true
...
...
@@ -444,7 +445,7 @@ Item {
anchors.horizontalCenter
:
parent
.
horizontalCenter
color
:
_lightWidgetBorders
?
qgcPal
.
mapWidgetBorderDark
:
qgcPal
.
mapWidgetBorderLight
text
:
"
Click in map to move vehicle
"
visible
:
_activeVehicle
&&
_activeVehicle
.
guidedMode
&&
_activeVehicle
.
flying
visible
:
gotoEnabled
}
Row
{
...
...
src/Vehicle/Vehicle.cc
View file @
4a39f75a
...
...
@@ -521,7 +521,7 @@ void Vehicle::_handleExtendedSysState(mavlink_message_t& message)
mavlink_msg_extended_sys_state_decode
(
&
message
,
&
extendedState
);
switch
(
extendedState
.
landed_state
)
{
case
MAV_LANDED_STATE_UNDEFINED
:
case
MAV_LANDED_STATE_UNDEFINED
:
break
;
case
MAV_LANDED_STATE_ON_GROUND
:
setFlying
(
false
);
...
...
src/ui/toolbar/MainToolBarIndicators.qml
View file @
4a39f75a
...
...
@@ -139,12 +139,14 @@ Row {
anchors.left
:
gpsIcon
.
right
QGCLabel
{
anchors.horizontalCenter
:
hdopValue
.
horizontalCenter
visible
:
activeVehicle
&&
!
isNaN
(
activeVehicle
.
gps
.
hdop
.
value
)
color
:
qgcPal
.
buttonText
text
:
activeVehicle
?
activeVehicle
.
gps
.
count
.
valueString
:
""
}
QGCLabel
{
id
:
hdopValue
visible
:
activeVehicle
&&
!
isNaN
(
activeVehicle
.
gps
.
hdop
.
value
)
color
:
qgcPal
.
buttonText
text
:
activeVehicle
?
activeVehicle
.
gps
.
hdop
.
value
.
toFixed
(
1
)
:
""
...
...
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