Skip to content

Commit

Permalink
Output Config: remove HPWM warning
Browse files Browse the repository at this point in the history
Now the timer grouping are explicit there should be
no confusing. Keeping previous commit to add the
output type option though so people can use alarms.
  • Loading branch information
peabody124 committed May 18, 2015
1 parent 5505e9b commit d86a4c6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ground/gcs/src/plugins/config/configoutputwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,20 +473,6 @@ void ConfigOutputWidget::updateObjectsFromWidgets()
ActuatorSettings::DataFields actuatorSettingsData = actuatorSettings->getData();
QList<OutputChannelForm*> outputChannelForms = findChildren<OutputChannelForm*>();

// generate a security requester for HPWM configuration
bool foundHPWM = false;
foreach(OutputChannelForm *outputChannelForm, outputChannelForms)
foundHPWM |= (outputChannelForm->type() == ActuatorSettings::CHANNELTYPE_HPWM);

if (foundHPWM) {
QMessageBox mbox;
mbox.setText(QString(tr("There is a channel in HPWM mode.\nThis has influence to all channels which use the same frequency.\nAre you sure you want to apply this?")));
mbox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
if (mbox.exec() != QMessageBox::Yes)
return;
}

// Set channel ranges and types
foreach(OutputChannelForm *outputChannelForm, outputChannelForms)
{
actuatorSettingsData.ChannelMax[outputChannelForm->index()] = outputChannelForm->max();
Expand Down

0 comments on commit d86a4c6

Please sign in to comment.