mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
uncrustify
This commit is contained in:
parent
243d5bd78e
commit
79e5627e29
@ -93,7 +93,8 @@ void OutputCalibrationUtil::stopOutputCalibration()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutputCalibrationUtil::startChannelOutput(quint16 channel, quint16 safeValue) {
|
void OutputCalibrationUtil::startChannelOutput(quint16 channel, quint16 safeValue)
|
||||||
|
{
|
||||||
QList<quint16> channels;
|
QList<quint16> channels;
|
||||||
channels.append(channel);
|
channels.append(channel);
|
||||||
startChannelOutput(channels, safeValue);
|
startChannelOutput(channels, safeValue);
|
||||||
@ -125,9 +126,9 @@ void OutputCalibrationUtil::setChannelOutputValue(quint16 value)
|
|||||||
if (c_prepared) {
|
if (c_prepared) {
|
||||||
ActuatorCommand *actuatorCommand = getActuatorCommandObject();
|
ActuatorCommand *actuatorCommand = getActuatorCommandObject();
|
||||||
ActuatorCommand::DataFields data = actuatorCommand->getData();
|
ActuatorCommand::DataFields data = actuatorCommand->getData();
|
||||||
foreach (quint32 channel, m_outputChannels) {
|
foreach(quint32 channel, m_outputChannels) {
|
||||||
// Set output value
|
// Set output value
|
||||||
if (channel <= ActuatorCommand::CHANNEL_NUMELEM){
|
if (channel <= ActuatorCommand::CHANNEL_NUMELEM) {
|
||||||
qDebug() << "OutputCalibrationUtil setting output value for channel " << channel << " to " << value << ".";
|
qDebug() << "OutputCalibrationUtil setting output value for channel " << channel << " to " << value << ".";
|
||||||
data.Channel[channel] = value;
|
data.Channel[channel] = value;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user