propertyint_checkState:_activeVehicle?(_activeVehicle.armed?1+(buttonActuators.state+buttonMotors.state+buttonMission.state+buttonSoundOutput.state)/4/4:0):0;// Shows progress of checks inside the checklist - unlocks next check steps in groups
functionreset(){
buttonHardware.reset();
buttonBattery.reset();
buttonRC.reset();
buttonActuators.reset();
buttonMotors.reset();
buttonMission.reset();
buttonSoundOutput.reset();
buttonPayload.reset();
buttonWeather.reset();
buttonFlightAreaFree.reset();
}
// Check list item data
ObjectModel{
id:_checkListItems
ObjectModel{
PreFlightCheckGroup{
name:qsTr("Initial checks")
// Standard check list items (group 0) - Available from the start
PreFlightCheckButton{
...
...
@@ -60,9 +40,11 @@ Item {
PreFlightAHRSCheck{
id:buttonEstimator
}
}
PreFlightCheckGroup{
name:qsTr("Please arm the vehicle here")
// Check list item group 1 - Require arming
QGCLabel{text:qsTr("<i>Please arm the vehicle here.</i>");opacity:0.2+0.8*(QGroundControl.multiVehicleManager.vehicles.count>0);anchors.horizontalCenter:buttonHardware.horizontalCenter;anchors.topMargin:40;anchors.bottomMargin:40;}
PreFlightCheckButton{
id:buttonActuators
name:qsTr("Actuators")
...
...
@@ -85,9 +67,12 @@ Item {
id:buttonSoundOutput
group:1
}
}
PreFlightCheckGroup{
name:qsTr("Last preparations before launch")
// Check list item group 2 - Final checks before launch
QGCLabel{text:qsTr("<i>Last preparations before launch</i>");opacity:0.2+0.8*(_checkState>=2);anchors.horizontalCenter:buttonHardware.horizontalCenter}
PreFlightCheckButton{
id:buttonPayload
name:qsTr("Payload")
...
...
@@ -106,5 +91,5 @@ Item {
group:2
manualText:qsTr("Launch area and path free of obstacles/people?")