Commit c1e64d8f authored by Patrick José Pereira's avatar Patrick José Pereira

AutoPilotPlugins: Remove unused variables

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 4885d2f5
......@@ -56,9 +56,7 @@ void PX4AdvancedFlightModesController::_init(void)
rcMinParam = QString("RC%1_MIN").arg(channel+1);
rcMaxParam = QString("RC%1_MAX").arg(channel+1);
rcRevParam = QString("RC%1_REV").arg(channel+1);
QVariant value;
_rgRCMin[channel] = getParameterFact(FactSystem::defaultComponentId, rcMinParam)->rawValue().toInt();
_rgRCMax[channel] = getParameterFact(FactSystem::defaultComponentId, rcMaxParam)->rawValue().toInt();
......@@ -220,8 +218,6 @@ void PX4AdvancedFlightModesController::_rcChannelsChanged(int channelCount, int
double PX4AdvancedFlightModesController::_switchLiveRange(const QString& param)
{
QVariant value;
int channel = getParameterFact(-1, param)->rawValue().toInt();
if (channel == 0) {
return 0.0;
......
......@@ -90,7 +90,6 @@ void PX4AirframeLoader::loadAirframeMetaData(void)
QString airframeGroup;
QString image;
QString errorString;
int xmlState = XmlStateNone;
while (!xml.atEnd()) {
......
......@@ -43,7 +43,6 @@ bool PowerComponent::requiresSetup(void) const
bool PowerComponent::setupComplete(void) const
{
QVariant cvalue, evalue, nvalue;
return _vehicle->parameterManager()->getParameter(FactSystem::defaultComponentId, "BAT_V_CHARGED")->rawValue().toFloat() != 0.0f &&
_vehicle->parameterManager()->getParameter(FactSystem::defaultComponentId, "BAT_V_EMPTY")->rawValue().toFloat() != 0.0f &&
_vehicle->parameterManager()->getParameter(FactSystem::defaultComponentId, "BAT_N_CELLS")->rawValue().toInt() != 0;
......
......@@ -140,7 +140,6 @@ void PowerComponentController::_handleUASTextMessage(int uasId, int compId, int
return;
}
QString busCompletePrefix("bus conf done:");
if (text.startsWith(calCompletePrefix)) {
_stopBusConfig();
emit calibrationSuccess(_warningMessages);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment