mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
Fix for tri yaw channel being reset.
This commit is contained in:
parent
d18a229a76
commit
eb337c6e5c
@ -2049,14 +2049,16 @@ void ConfigAirframeWidget::sendAircraftUpdate()
|
|||||||
m_aircraft->mrStatusLabel->setText("Error: Assign a Yaw channel");
|
m_aircraft->mrStatusLabel->setText("Error: Assign a Yaw channel");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Need to setup motors first because setupMotors(..) will call resetActuators()
|
||||||
|
// and reset the Yaw channel to disabled.
|
||||||
|
motorList << "VTOLMotorNW" << "VTOLMotorNE" << "VTOLMotorS";
|
||||||
|
setupMotors(motorList);
|
||||||
|
|
||||||
obj = dynamic_cast<UAVDataObject*>(getObjectManager()->getObject(QString("ActuatorSettings")));
|
obj = dynamic_cast<UAVDataObject*>(getObjectManager()->getObject(QString("ActuatorSettings")));
|
||||||
Q_ASSERT(obj);
|
Q_ASSERT(obj);
|
||||||
field = obj->getField("FixedWingYaw1");
|
field = obj->getField("FixedWingYaw1");
|
||||||
field->setValue(m_aircraft->triYawChannel->currentText());
|
field->setValue(m_aircraft->triYawChannel->currentText());
|
||||||
// No need to send a obj->updated() here because setupMotors
|
obj->updated();
|
||||||
// will do it.
|
|
||||||
motorList << "VTOLMotorNW" << "VTOLMotorNE" << "VTOLMotorS";
|
|
||||||
setupMotors(motorList);
|
|
||||||
|
|
||||||
// Motor 1 to 6, Y6 Layout:
|
// Motor 1 to 6, Y6 Layout:
|
||||||
// pitch roll yaw
|
// pitch roll yaw
|
||||||
|
Loading…
Reference in New Issue
Block a user