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
b37958b9
Commit
b37958b9
authored
Dec 14, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused methods
parent
a0fbb617
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
0 additions
and
256 deletions
+0
-256
APMAirframeComponent.cc
src/AutoPilotPlugins/APM/APMAirframeComponent.cc
+0
-25
APMAirframeComponent.h
src/AutoPilotPlugins/APM/APMAirframeComponent.h
+0
-2
APMFlightModesComponent.cc
src/AutoPilotPlugins/APM/APMFlightModesComponent.cc
+0
-17
APMFlightModesComponent.h
src/AutoPilotPlugins/APM/APMFlightModesComponent.h
+0
-2
APMRadioComponent.cc
src/AutoPilotPlugins/APM/APMRadioComponent.cc
+0
-21
APMRadioComponent.h
src/AutoPilotPlugins/APM/APMRadioComponent.h
+0
-2
APMSafetyComponent.cc
src/AutoPilotPlugins/APM/APMSafetyComponent.cc
+0
-17
APMSafetyComponent.h
src/AutoPilotPlugins/APM/APMSafetyComponent.h
+0
-2
APMSensorsComponent.cc
src/AutoPilotPlugins/APM/APMSensorsComponent.cc
+0
-17
APMSensorsComponent.h
src/AutoPilotPlugins/APM/APMSensorsComponent.h
+0
-2
AirframeComponent.cc
src/AutoPilotPlugins/PX4/AirframeComponent.cc
+0
-21
AirframeComponent.h
src/AutoPilotPlugins/PX4/AirframeComponent.h
+0
-2
FlightModesComponent.cc
src/AutoPilotPlugins/PX4/FlightModesComponent.cc
+0
-33
FlightModesComponent.h
src/AutoPilotPlugins/PX4/FlightModesComponent.h
+0
-2
PX4RadioComponent.cc
src/AutoPilotPlugins/PX4/PX4RadioComponent.cc
+0
-21
PX4RadioComponent.h
src/AutoPilotPlugins/PX4/PX4RadioComponent.h
+0
-2
PowerComponent.cc
src/AutoPilotPlugins/PX4/PowerComponent.cc
+0
-19
PowerComponent.h
src/AutoPilotPlugins/PX4/PowerComponent.h
+0
-2
SafetyComponent.cc
src/AutoPilotPlugins/PX4/SafetyComponent.cc
+0
-19
SafetyComponent.h
src/AutoPilotPlugins/PX4/SafetyComponent.h
+0
-2
SensorsComponent.cc
src/AutoPilotPlugins/PX4/SensorsComponent.cc
+0
-21
SensorsComponent.h
src/AutoPilotPlugins/PX4/SensorsComponent.h
+0
-2
VehicleComponent.h
src/VehicleSetup/VehicleComponent.h
+0
-3
No files found.
src/AutoPilotPlugins/APM/APMAirframeComponent.cc
View file @
b37958b9
...
@@ -65,18 +65,6 @@ bool APMAirframeComponent::setupComplete(void) const
...
@@ -65,18 +65,6 @@ bool APMAirframeComponent::setupComplete(void) const
#endif
#endif
}
}
QString
APMAirframeComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires calibration"
;
}
else
{
stateDescription
=
"Calibrated"
;
}
return
QString
(
stateDescription
);
}
QStringList
APMAirframeComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
APMAirframeComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
// You'll need to figure out which parameters trigger setup complete
// You'll need to figure out which parameters trigger setup complete
...
@@ -87,19 +75,6 @@ QStringList APMAirframeComponent::setupCompleteChangedTriggerList(void) const
...
@@ -87,19 +75,6 @@ QStringList APMAirframeComponent::setupCompleteChangedTriggerList(void) const
#endif
#endif
}
}
QStringList
APMAirframeComponent
::
paramFilterList
(
void
)
const
{
#if 0
QStringList list;
list << "SYS_AUTOSTART";
return list;
#else
return
QStringList
();
#endif
}
QUrl
APMAirframeComponent
::
setupSource
(
void
)
const
QUrl
APMAirframeComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/APMAirframeComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/APMAirframeComponent.qml"
);
...
...
src/AutoPilotPlugins/APM/APMAirframeComponent.h
View file @
b37958b9
...
@@ -42,9 +42,7 @@ public:
...
@@ -42,9 +42,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/APM/APMFlightModesComponent.cc
View file @
b37958b9
...
@@ -55,28 +55,11 @@ bool APMFlightModesComponent::setupComplete(void) const
...
@@ -55,28 +55,11 @@ bool APMFlightModesComponent::setupComplete(void) const
return
true
;
return
true
;
}
}
QString
APMFlightModesComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires calibration"
;
}
else
{
stateDescription
=
"Calibrated"
;
}
return
QString
(
stateDescription
);
}
QStringList
APMFlightModesComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
APMFlightModesComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
return
QStringList
();
return
QStringList
();
}
}
QStringList
APMFlightModesComponent
::
paramFilterList
(
void
)
const
{
return
QStringList
();
}
QUrl
APMFlightModesComponent
::
setupSource
(
void
)
const
QUrl
APMFlightModesComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/APMFlightModesComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/APMFlightModesComponent.qml"
);
...
...
src/AutoPilotPlugins/APM/APMFlightModesComponent.h
View file @
b37958b9
...
@@ -42,9 +42,7 @@ public:
...
@@ -42,9 +42,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/APM/APMRadioComponent.cc
View file @
b37958b9
...
@@ -67,18 +67,6 @@ bool APMRadioComponent::setupComplete(void) const
...
@@ -67,18 +67,6 @@ bool APMRadioComponent::setupComplete(void) const
return
true
;
return
true
;
}
}
QString
APMRadioComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires calibration"
;
}
else
{
stateDescription
=
"Calibrated"
;
}
return
QString
(
stateDescription
);
}
QStringList
APMRadioComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
APMRadioComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
QStringList
triggers
;
QStringList
triggers
;
...
@@ -88,15 +76,6 @@ QStringList APMRadioComponent::setupCompleteChangedTriggerList(void) const
...
@@ -88,15 +76,6 @@ QStringList APMRadioComponent::setupCompleteChangedTriggerList(void) const
return
triggers
;
return
triggers
;
}
}
QStringList
APMRadioComponent
::
paramFilterList
(
void
)
const
{
QStringList
list
;
list
<<
"RC*"
;
return
list
;
}
QUrl
APMRadioComponent
::
setupSource
(
void
)
const
QUrl
APMRadioComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/RadioComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/RadioComponent.qml"
);
...
...
src/AutoPilotPlugins/APM/APMRadioComponent.h
View file @
b37958b9
...
@@ -42,9 +42,7 @@ public:
...
@@ -42,9 +42,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/APM/APMSafetyComponent.cc
View file @
b37958b9
...
@@ -60,28 +60,11 @@ bool APMSafetyComponent::setupComplete(void) const
...
@@ -60,28 +60,11 @@ bool APMSafetyComponent::setupComplete(void) const
return
true
;
return
true
;
}
}
QString
APMSafetyComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires setup"
;
}
else
{
stateDescription
=
"Setup complete"
;
}
return
QString
(
stateDescription
);
}
QStringList
APMSafetyComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
APMSafetyComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
return
QStringList
();
return
QStringList
();
}
}
QStringList
APMSafetyComponent
::
paramFilterList
(
void
)
const
{
return
QStringList
();
}
QUrl
APMSafetyComponent
::
setupSource
(
void
)
const
QUrl
APMSafetyComponent
::
setupSource
(
void
)
const
{
{
QString
qmlFile
;
QString
qmlFile
;
...
...
src/AutoPilotPlugins/APM/APMSafetyComponent.h
View file @
b37958b9
...
@@ -42,9 +42,7 @@ public:
...
@@ -42,9 +42,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/APM/APMSensorsComponent.cc
View file @
b37958b9
...
@@ -60,18 +60,6 @@ bool APMSensorsComponent::setupComplete(void) const
...
@@ -60,18 +60,6 @@ bool APMSensorsComponent::setupComplete(void) const
return
!
compassSetupNeeded
()
&&
!
accelSetupNeeded
();
return
!
compassSetupNeeded
()
&&
!
accelSetupNeeded
();
}
}
QString
APMSensorsComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires calibration"
;
}
else
{
stateDescription
=
"Calibrated"
;
}
return
QString
(
stateDescription
);
}
QStringList
APMSensorsComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
APMSensorsComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
QStringList
triggers
;
QStringList
triggers
;
...
@@ -91,11 +79,6 @@ QStringList APMSensorsComponent::setupCompleteChangedTriggerList(void) const
...
@@ -91,11 +79,6 @@ QStringList APMSensorsComponent::setupCompleteChangedTriggerList(void) const
return
triggers
;
return
triggers
;
}
}
QStringList
APMSensorsComponent
::
paramFilterList
(
void
)
const
{
return
QStringList
();
}
QUrl
APMSensorsComponent
::
setupSource
(
void
)
const
QUrl
APMSensorsComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/APMSensorsComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/APMSensorsComponent.qml"
);
...
...
src/AutoPilotPlugins/APM/APMSensorsComponent.h
View file @
b37958b9
...
@@ -45,9 +45,7 @@ public:
...
@@ -45,9 +45,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/PX4/AirframeComponent.cc
View file @
b37958b9
...
@@ -145,32 +145,11 @@ bool AirframeComponent::setupComplete(void) const
...
@@ -145,32 +145,11 @@ bool AirframeComponent::setupComplete(void) const
return
_autopilot
->
getParameterFact
(
FactSystem
::
defaultComponentId
,
"SYS_AUTOSTART"
)
->
rawValue
().
toInt
()
!=
0
;
return
_autopilot
->
getParameterFact
(
FactSystem
::
defaultComponentId
,
"SYS_AUTOSTART"
)
->
rawValue
().
toInt
()
!=
0
;
}
}
QString
AirframeComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires calibration"
;
}
else
{
stateDescription
=
"Calibrated"
;
}
return
QString
(
stateDescription
);
}
QStringList
AirframeComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
AirframeComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
return
QStringList
(
"SYS_AUTOSTART"
);
return
QStringList
(
"SYS_AUTOSTART"
);
}
}
QStringList
AirframeComponent
::
paramFilterList
(
void
)
const
{
QStringList
list
;
list
<<
"SYS_AUTOSTART"
;
return
list
;
}
QUrl
AirframeComponent
::
setupSource
(
void
)
const
QUrl
AirframeComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/AirframeComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/AirframeComponent.qml"
);
...
...
src/AutoPilotPlugins/PX4/AirframeComponent.h
View file @
b37958b9
...
@@ -46,9 +46,7 @@ public:
...
@@ -46,9 +46,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/PX4/FlightModesComponent.cc
View file @
b37958b9
...
@@ -33,16 +33,6 @@ struct SwitchListItem {
...
@@ -33,16 +33,6 @@ struct SwitchListItem {
const
char
*
name
;
const
char
*
name
;
};
};
/// @brief Used to translate from RC_MAP_* parameters name to user string
static
const
SwitchListItem
switchList
[]
=
{
{
"RC_MAP_MODE_SW"
,
"Mode Switch:"
},
// First entry must be mode switch
{
"RC_MAP_POSCTL_SW"
,
"Position Control Switch:"
},
{
"RC_MAP_LOITER_SW"
,
"Loiter Switch:"
},
{
"RC_MAP_RETURN_SW"
,
"Return Switch:"
},
{
"RC_MAP_ACRO_SW"
,
"Acro Switch:"
},
};
static
const
size_t
cSwitchList
=
sizeof
(
switchList
)
/
sizeof
(
switchList
[
0
]);
FlightModesComponent
::
FlightModesComponent
(
Vehicle
*
vehicle
,
AutoPilotPlugin
*
autopilot
,
QObject
*
parent
)
:
FlightModesComponent
::
FlightModesComponent
(
Vehicle
*
vehicle
,
AutoPilotPlugin
*
autopilot
,
QObject
*
parent
)
:
PX4Component
(
vehicle
,
autopilot
,
parent
),
PX4Component
(
vehicle
,
autopilot
,
parent
),
_name
(
tr
(
"Flight Modes"
))
_name
(
tr
(
"Flight Modes"
))
...
@@ -77,34 +67,11 @@ bool FlightModesComponent::setupComplete(void) const
...
@@ -77,34 +67,11 @@ bool FlightModesComponent::setupComplete(void) const
_autopilot
->
getParameterFact
(
FactSystem
::
defaultComponentId
,
"RC_MAP_MODE_SW"
)
->
rawValue
().
toInt
()
!=
0
;
_autopilot
->
getParameterFact
(
FactSystem
::
defaultComponentId
,
"RC_MAP_MODE_SW"
)
->
rawValue
().
toInt
()
!=
0
;
}
}
QString
FlightModesComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires calibration"
;
}
else
{
stateDescription
=
"Calibrated"
;
}
return
QString
(
stateDescription
);
}
QStringList
FlightModesComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
FlightModesComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
return
QStringList
(
"RC_MAP_MODE_SW"
);
return
QStringList
(
"RC_MAP_MODE_SW"
);
}
}
QStringList
FlightModesComponent
::
paramFilterList
(
void
)
const
{
QStringList
list
;
for
(
size_t
i
=
0
;
i
<
cSwitchList
;
i
++
)
{
list
<<
switchList
[
i
].
param
;
}
return
list
;
}
QUrl
FlightModesComponent
::
setupSource
(
void
)
const
QUrl
FlightModesComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/FlightModesComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/FlightModesComponent.qml"
);
...
...
src/AutoPilotPlugins/PX4/FlightModesComponent.h
View file @
b37958b9
...
@@ -46,9 +46,7 @@ public:
...
@@ -46,9 +46,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/PX4/PX4RadioComponent.cc
View file @
b37958b9
...
@@ -69,18 +69,6 @@ bool PX4RadioComponent::setupComplete(void) const
...
@@ -69,18 +69,6 @@ bool PX4RadioComponent::setupComplete(void) const
return
true
;
return
true
;
}
}
QString
PX4RadioComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires calibration"
;
}
else
{
stateDescription
=
"Calibrated"
;
}
return
QString
(
stateDescription
);
}
QStringList
PX4RadioComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
PX4RadioComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
QStringList
triggers
;
QStringList
triggers
;
...
@@ -90,15 +78,6 @@ QStringList PX4RadioComponent::setupCompleteChangedTriggerList(void) const
...
@@ -90,15 +78,6 @@ QStringList PX4RadioComponent::setupCompleteChangedTriggerList(void) const
return
triggers
;
return
triggers
;
}
}
QStringList
PX4RadioComponent
::
paramFilterList
(
void
)
const
{
QStringList
list
;
list
<<
"RC*"
;
return
list
;
}
QUrl
PX4RadioComponent
::
setupSource
(
void
)
const
QUrl
PX4RadioComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/RadioComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/RadioComponent.qml"
);
...
...
src/AutoPilotPlugins/PX4/PX4RadioComponent.h
View file @
b37958b9
...
@@ -42,9 +42,7 @@ public:
...
@@ -42,9 +42,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/PX4/PowerComponent.cc
View file @
b37958b9
...
@@ -62,30 +62,11 @@ bool PowerComponent::setupComplete(void) const
...
@@ -62,30 +62,11 @@ bool PowerComponent::setupComplete(void) const
_autopilot
->
getParameterFact
(
FactSystem
::
defaultComponentId
,
"BAT_N_CELLS"
)
->
rawValue
().
toInt
()
!=
0
;
_autopilot
->
getParameterFact
(
FactSystem
::
defaultComponentId
,
"BAT_N_CELLS"
)
->
rawValue
().
toInt
()
!=
0
;
}
}
QString
PowerComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires setup"
;
}
else
{
stateDescription
=
"Setup complete"
;
}
return
QString
(
stateDescription
);
}
QStringList
PowerComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
PowerComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
return
QStringList
();
return
QStringList
();
}
}
QStringList
PowerComponent
::
paramFilterList
(
void
)
const
{
QStringList
list
;
return
list
;
}
QUrl
PowerComponent
::
setupSource
(
void
)
const
QUrl
PowerComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/PowerComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/PowerComponent.qml"
);
...
...
src/AutoPilotPlugins/PX4/PowerComponent.h
View file @
b37958b9
...
@@ -46,9 +46,7 @@ public:
...
@@ -46,9 +46,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/PX4/SafetyComponent.cc
View file @
b37958b9
...
@@ -60,30 +60,11 @@ bool SafetyComponent::setupComplete(void) const
...
@@ -60,30 +60,11 @@ bool SafetyComponent::setupComplete(void) const
return
true
;
return
true
;
}
}
QString
SafetyComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires setup"
;
}
else
{
stateDescription
=
"Setup complete"
;
}
return
QString
(
stateDescription
);
}
QStringList
SafetyComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
SafetyComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
return
QStringList
();
return
QStringList
();
}
}
QStringList
SafetyComponent
::
paramFilterList
(
void
)
const
{
QStringList
list
;
return
list
;
}
QUrl
SafetyComponent
::
setupSource
(
void
)
const
QUrl
SafetyComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/SafetyComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/SafetyComponent.qml"
);
...
...
src/AutoPilotPlugins/PX4/SafetyComponent.h
View file @
b37958b9
...
@@ -47,9 +47,7 @@ public:
...
@@ -47,9 +47,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/AutoPilotPlugins/PX4/SensorsComponent.cc
View file @
b37958b9
...
@@ -70,18 +70,6 @@ bool SensorsComponent::setupComplete(void) const
...
@@ -70,18 +70,6 @@ bool SensorsComponent::setupComplete(void) const
return
true
;
return
true
;
}
}
QString
SensorsComponent
::
setupStateDescription
(
void
)
const
{
const
char
*
stateDescription
;
if
(
requiresSetup
())
{
stateDescription
=
"Requires calibration"
;
}
else
{
stateDescription
=
"Calibrated"
;
}
return
QString
(
stateDescription
);
}
QStringList
SensorsComponent
::
setupCompleteChangedTriggerList
(
void
)
const
QStringList
SensorsComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
{
QStringList
triggers
;
QStringList
triggers
;
...
@@ -105,15 +93,6 @@ QStringList SensorsComponent::setupCompleteChangedTriggerList(void) const
...
@@ -105,15 +93,6 @@ QStringList SensorsComponent::setupCompleteChangedTriggerList(void) const
return
triggers
;
return
triggers
;
}
}
QStringList
SensorsComponent
::
paramFilterList
(
void
)
const
{
QStringList
list
;
list
<<
"SENS_*"
<<
"CAL_*"
;
return
list
;
}
QUrl
SensorsComponent
::
setupSource
(
void
)
const
QUrl
SensorsComponent
::
setupSource
(
void
)
const
{
{
return
QUrl
::
fromUserInput
(
"qrc:/qml/SensorsComponent.qml"
);
return
QUrl
::
fromUserInput
(
"qrc:/qml/SensorsComponent.qml"
);
...
...
src/AutoPilotPlugins/PX4/SensorsComponent.h
View file @
b37958b9
...
@@ -46,9 +46,7 @@ public:
...
@@ -46,9 +46,7 @@ public:
virtual
QString
iconResource
(
void
)
const
;
virtual
QString
iconResource
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
requiresSetup
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
bool
setupComplete
(
void
)
const
;
virtual
QString
setupStateDescription
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QUrl
setupSource
(
void
)
const
;
virtual
QStringList
paramFilterList
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QUrl
summaryQmlSource
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
virtual
QString
prerequisiteSetup
(
void
)
const
;
...
...
src/VehicleSetup/VehicleComponent.h
View file @
b37958b9
...
@@ -46,7 +46,6 @@ class VehicleComponent : public QObject
...
@@ -46,7 +46,6 @@ class VehicleComponent : public QObject
Q_PROPERTY
(
QString
description
READ
description
CONSTANT
)
Q_PROPERTY
(
QString
description
READ
description
CONSTANT
)
Q_PROPERTY
(
bool
requiresSetup
READ
requiresSetup
CONSTANT
)
Q_PROPERTY
(
bool
requiresSetup
READ
requiresSetup
CONSTANT
)
Q_PROPERTY
(
bool
setupComplete
READ
setupComplete
STORED
false
NOTIFY
setupCompleteChanged
)
Q_PROPERTY
(
bool
setupComplete
READ
setupComplete
STORED
false
NOTIFY
setupCompleteChanged
)
Q_PROPERTY
(
QString
setupStateDescription
READ
setupStateDescription
STORED
false
)
Q_PROPERTY
(
QString
iconResource
READ
iconResource
CONSTANT
)
Q_PROPERTY
(
QString
iconResource
READ
iconResource
CONSTANT
)
Q_PROPERTY
(
QUrl
setupSource
READ
setupSource
CONSTANT
)
Q_PROPERTY
(
QUrl
setupSource
READ
setupSource
CONSTANT
)
Q_PROPERTY
(
QUrl
summaryQmlSource
READ
summaryQmlSource
CONSTANT
)
Q_PROPERTY
(
QUrl
summaryQmlSource
READ
summaryQmlSource
CONSTANT
)
...
@@ -61,9 +60,7 @@ public:
...
@@ -61,9 +60,7 @@ public:
virtual
QString
iconResource
(
void
)
const
=
0
;
virtual
QString
iconResource
(
void
)
const
=
0
;
virtual
bool
requiresSetup
(
void
)
const
=
0
;
virtual
bool
requiresSetup
(
void
)
const
=
0
;
virtual
bool
setupComplete
(
void
)
const
=
0
;
virtual
bool
setupComplete
(
void
)
const
=
0
;
virtual
QString
setupStateDescription
(
void
)
const
=
0
;
virtual
QUrl
setupSource
(
void
)
const
=
0
;
virtual
QUrl
setupSource
(
void
)
const
=
0
;
virtual
QStringList
paramFilterList
(
void
)
const
=
0
;
virtual
QUrl
summaryQmlSource
(
void
)
const
=
0
;
virtual
QUrl
summaryQmlSource
(
void
)
const
=
0
;
virtual
QString
prerequisiteSetup
(
void
)
const
=
0
;
virtual
QString
prerequisiteSetup
(
void
)
const
=
0
;
...
...
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