1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +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)
{
ChannelConfigWarning warning = None;
int currentNeutralValue = channelForm->getNeutralValue();
int currentNeutralValue = channelForm->neutralValue();
// Check if RevMotor has neutral value around center
if (channelForm->isReversableMotor()) {

View File

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

View File

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