1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-01 18:29:16 +01:00

OP-1222 Fixed a bug with Actuator settings and banks to use for motors.

This commit is contained in:
m_thread 2014-08-18 13:14:07 +02:00
parent 5354723928
commit 82a3590da5
4 changed files with 22 additions and 2 deletions

View File

@ -63,5 +63,6 @@
<file>qml/images/tab.png</file> <file>qml/images/tab.png</file>
<file>qml/AboutDialog.qml</file> <file>qml/AboutDialog.qml</file>
<file alias="qml/AuthorsModel.qml">../../../../../build/openpilotgcs-synthetics/AuthorsModel.qml</file> <file alias="qml/AuthorsModel.qml">../../../../../build/openpilotgcs-synthetics/AuthorsModel.qml</file>
<file>images/opie_90x120.gif</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

View File

@ -57,6 +57,17 @@ Rectangle {
} }
} }
} }
AnimatedImage {
id: opie
anchors.left: parent.left
anchors.leftMargin: 10
anchors.top: logo.bottom
anchors.topMargin: 10
source: "../images/opie_90x120.gif"
z: 100
fillMode: Image.PreserveAspectFit
visible: false
}
Rectangle { Rectangle {
anchors.left: logo.right anchors.left: logo.right
@ -76,7 +87,15 @@ Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
font.pixelSize: 14 font.pixelSize: 14
font.bold: true font.bold: true
MouseArea {
id: easter_egg
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
opie.visible = !opie.visible
}
}
} }
Text { Text {
id: versionLabel id: versionLabel

View File

@ -348,6 +348,7 @@ void VehicleConfigurationHelper::applyActuatorConfiguration()
} }
for (quint16 i = 0; i < ActuatorSettings::CHANNELUPDATEFREQ_NUMELEM; i++) { for (quint16 i = 0; i < ActuatorSettings::CHANNELUPDATEFREQ_NUMELEM; i++) {
data.ChannelUpdateFreq[i] = updateFrequence;
if (m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_REVO) { if (m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_REVO) {
if (i == 1) { if (i == 1) {
data.ChannelUpdateFreq[i] = ANALOG_SERVO_FREQUENCE; data.ChannelUpdateFreq[i] = ANALOG_SERVO_FREQUENCE;
@ -357,7 +358,6 @@ void VehicleConfigurationHelper::applyActuatorConfiguration()
data.ChannelUpdateFreq[i] = ANALOG_SERVO_FREQUENCE; data.ChannelUpdateFreq[i] = ANALOG_SERVO_FREQUENCE;
} }
} }
data.ChannelUpdateFreq[i] = updateFrequence;
} }
actSettings->setData(data); actSettings->setData(data);