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:
parent
b68c130bc4
commit
2a7e89b701
@ -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()) {
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user