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
29458653
Unverified
Commit
29458653
authored
Jun 06, 2018
by
Don Gagne
Committed by
GitHub
Jun 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6570 from DonLakeFlyer/PreFlightState
PreFlight: Reorganize to retain state
parents
328fc745
5be806e3
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
16 deletions
+34
-16
qgroundcontrol.qrc
qgroundcontrol.qrc
+2
-1
BuiltInPreFlightCheckModel.qml
src/FlightDisplay/BuiltInPreFlightCheckModel.qml
+1
-1
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+1
-1
qmldir
src/FlightDisplay/qmldir
+1
-1
PreFlightCheckList.qml
src/QmlControls/PreFlightCheckList.qml
+1
-12
PreFlightCheckModel.qml
src/QmlControls/PreFlightCheckModel.qml
+27
-0
QGroundControl.Controls.qmldir
src/QmlControls/QGroundControl.Controls.qmldir
+1
-0
No files found.
qgroundcontrol.qrc
View file @
29458653
...
...
@@ -91,6 +91,7 @@
<file alias="QGroundControl/Controls/PreFlightCheckButton.qml">src/QmlControls/PreFlightCheckButton.qml</file>
<file alias="QGroundControl/Controls/PreFlightCheckGroup.qml">src/QmlControls/PreFlightCheckGroup.qml</file>
<file alias="QGroundControl/Controls/PreFlightCheckList.qml">src/QmlControls/PreFlightCheckList.qml</file>
<file alias="QGroundControl/Controls/PreFlightCheckModel.qml">src/QmlControls/PreFlightCheckModel.qml</file>
<file alias="QGroundControl/Controls/QGCButton.qml">src/QmlControls/QGCButton.qml</file>
<file alias="QGroundControl/Controls/QGCCheckBox.qml">src/QmlControls/QGCCheckBox.qml</file>
<file alias="QGroundControl/Controls/QGCColoredImage.qml">src/QmlControls/QGCColoredImage.qml</file>
...
...
@@ -155,7 +156,7 @@
<file alias="QGroundControl/FlightDisplay/GuidedAltitudeSlider.qml">src/FlightDisplay/GuidedAltitudeSlider.qml</file>
<file alias="QGroundControl/FlightDisplay/MultiVehicleList.qml">src/FlightDisplay/MultiVehicleList.qml</file>
<file alias="QGroundControl/FlightDisplay/PreFlightBatteryCheck.qml">src/FlightDisplay/PreFlightBatteryCheck.qml</file>
<file alias="QGroundControl/FlightDisplay/
PreFlightCheckModel.qml">src/FlightDisplay/
PreFlightCheckModel.qml</file>
<file alias="QGroundControl/FlightDisplay/
BuiltInPreFlightCheckModel.qml">src/FlightDisplay/BuiltIn
PreFlightCheckModel.qml</file>
<file alias="QGroundControl/FlightDisplay/PreFlightGPSCheck.qml">src/FlightDisplay/PreFlightGPSCheck.qml</file>
<file alias="QGroundControl/FlightDisplay/PreFlightRCCheck.qml">src/FlightDisplay/PreFlightRCCheck.qml</file>
<file alias="QGroundControl/FlightDisplay/PreFlightSensorsHealthCheck.qml">src/FlightDisplay/PreFlightSensorsHealthCheck.qml</file>
...
...
src/FlightDisplay/PreFlightCheckModel.qml
→
src/FlightDisplay/
BuiltIn
PreFlightCheckModel.qml
View file @
29458653
...
...
@@ -17,7 +17,7 @@ import QGroundControl.Controls 1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Vehicle
1.0
Object
Model
{
PreFlightCheck
Model
{
PreFlightCheckGroup
{
name
:
qsTr
(
"
Initial checks
"
)
...
...
src/FlightDisplay/FlightDisplayView.qml
View file @
29458653
...
...
@@ -112,7 +112,7 @@ QGCView {
Component.onCompleted
:
start
(
true
/* flyView */
)
}
PreFlightCheckModel
{
BuiltIn
PreFlightCheckModel
{
id
:
preFlightCheckModel
}
...
...
src/FlightDisplay/qmldir
View file @
29458653
...
...
@@ -10,7 +10,7 @@ GuidedActionList 1.0 GuidedActionList.qml
GuidedAltitudeSlider 1.0 GuidedAltitudeSlider.qml
MultiVehicleList 1.0 MultiVehicleList.qml
PreFlightBatteryCheck 1.0 PreFlightBatteryCheck.qml
PreFlightCheckModel 1.0
PreFlightCheckModel.qml
BuiltInPreFlightCheckModel 1.0 BuiltIn
PreFlightCheckModel.qml
PreFlightGPSCheck 1.0 PreFlightGPSCheck.qml
PreFlightRCCheck 1.0 PreFlightRCCheck.qml
PreFlightSensorsHealthCheck 1.0 PreFlightSensorsHealthCheck.qml
...
...
src/QmlControls/PreFlightCheckList.qml
View file @
29458653
...
...
@@ -25,17 +25,6 @@ Rectangle {
property
bool
_passed
:
false
function
reset
()
{
for
(
var
i
=
0
;
i
<
model
.
count
;
i
++
)
{
var
group
=
model
.
get
(
i
)
group
.
reset
()
group
.
enabled
=
i
===
0
group
.
_checked
=
i
===
0
}
}
Component.onCompleted
:
reset
()
// We delay the updates when a group passes so the user can see all items green for a moment prior to hiding
Timer
{
id
:
delayedGroupPassed
...
...
@@ -94,7 +83,7 @@ Rectangle {
opacity
:
0.2
+
0.8
*
(
QGroundControl
.
multiVehicleManager
.
vehicles
.
count
>
0
)
tooltip
:
qsTr
(
"
Reset the checklist (e.g. after a vehicle reboot)
"
)
onClicked
:
reset
()
onClicked
:
model
.
reset
()
Image
{
source
:
"
/qmlimages/MapSyncBlack.svg
"
;
anchors.fill
:
parent
}
}
...
...
src/QmlControls/PreFlightCheckModel.qml
0 → 100644
View file @
29458653
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
import
QtQuick
2.3
import
QtQml
.
Models
2.1
ObjectModel
{
id
:
_root
function
reset
()
{
for
(
var
i
=
0
;
i
<
_root
.
count
;
i
++
)
{
var
group
=
_root
.
get
(
i
)
group
.
reset
()
group
.
enabled
=
i
===
0
group
.
_checked
=
i
===
0
}
}
Component.onCompleted
:
reset
()
}
src/QmlControls/QGroundControl.Controls.qmldir
View file @
29458653
...
...
@@ -37,6 +37,7 @@ PlanToolBar 1.0 PlanToolBar.qml
PreFlightCheckButton 1.0 PreFlightCheckButton.qml
PreFlightCheckGroup 1.0 PreFlightCheckGroup.qml
PreFlightCheckList 1.0 PreFlightCheckList.qml
PreFlightCheckModel 1.0 PreFlightCheckModel.qml
QGCButton 1.0 QGCButton.qml
QGCCheckBox 1.0 QGCCheckBox.qml
QGCColoredImage 1.0 QGCColoredImage.qml
...
...
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