1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-06 21:54:15 +01:00

LP-551 Rename getNeutralValue() to neutralValue()

This commit is contained in:
Laurent Lalanne 2018-01-13 21:49:29 +01:00
parent b68c130bc4
commit 2a7e89b701
3 changed files with 3 additions and 3 deletions

View File

@ -579,7 +579,7 @@ void ConfigOutputWidget::setChannelLimits(OutputChannelForm *channelForm, Output
ConfigOutputWidget::ChannelConfigWarning ConfigOutputWidget::checkChannelConfig(OutputChannelForm *channelForm, OutputBankControls *bankControls) ConfigOutputWidget::ChannelConfigWarning ConfigOutputWidget::checkChannelConfig(OutputChannelForm *channelForm, OutputBankControls *bankControls)
{ {
ChannelConfigWarning warning = None; ChannelConfigWarning warning = None;
int currentNeutralValue = channelForm->getNeutralValue(); int currentNeutralValue = channelForm->neutralValue();
// Check if RevMotor has neutral value around center // Check if RevMotor has neutral value around center
if (channelForm->isReversableMotor()) { if (channelForm->isReversableMotor()) {

View File

@ -380,7 +380,7 @@ void OutputChannelForm::sendChannelTest(int value)
* *
* Returns current neutral value * Returns current neutral value
*/ */
int OutputChannelForm::getNeutralValue() int OutputChannelForm::neutralValue()
{ {
return ui->actuatorNeutral->value(); return ui->actuatorNeutral->value();
} }

View File

@ -63,7 +63,7 @@ public slots:
void enableChannelTest(bool state); void enableChannelTest(bool state);
QString outputMixerType(); QString outputMixerType();
void setLimits(int actuatorMinMinimum, int actuatorMinMaximum, int actuatorMaxMinimum, int actuatorMaxMaximum); void setLimits(int actuatorMinMinimum, int actuatorMinMaximum, int actuatorMaxMinimum, int actuatorMaxMaximum);
int getNeutralValue(); int neutralValue();
bool isServoOutput(); bool isServoOutput();
bool isNormalMotor(); bool isNormalMotor();
bool isReversableMotor(); bool isReversableMotor();