mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OP-38 Fix servo output settings so that it works with the new Helicopter settings.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1408 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
d445e36717
commit
38df030773
@ -81,7 +81,8 @@ ConfigServoWidget::ConfigServoWidget(QWidget *parent) : ConfigTaskWidget(parent)
|
||||
foreach (UAVObjectField* field, fieldList) {
|
||||
// NOTE: we assume that all options in ActuatorSettings are a channel assignement
|
||||
// except for the options called "ChannelXXX"
|
||||
if (!field->getName().contains("Channel")) {
|
||||
if (field->getUnits().contains("channel")) {
|
||||
// if (!field->getName().contains("Channel")) {
|
||||
m_config->ch0Output->addItem(field->getName());
|
||||
m_config->ch1Output->addItem(field->getName());
|
||||
m_config->ch2Output->addItem(field->getName());
|
||||
@ -348,7 +349,7 @@ void ConfigServoWidget::sendRCOutputUpdate()
|
||||
foreach (UAVObjectField* field, fieldList) {
|
||||
// NOTE: we assume that all options in ActuatorSettings are a channel assignement
|
||||
// except for the options called "ChannelXXX"
|
||||
if (!field->getName().contains("Channel")) {
|
||||
if (field->getUnits().contains("channel")) {
|
||||
field->setValue(field->getOptions().last());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user