mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-28 17:54:15 +01:00
OP-1222 Fixed a bug with Actuator settings and banks to use for motors.
This commit is contained in:
parent
5354723928
commit
82a3590da5
@ -63,5 +63,6 @@
|
||||
<file>qml/images/tab.png</file>
|
||||
<file>qml/AboutDialog.qml</file>
|
||||
<file alias="qml/AuthorsModel.qml">../../../../../build/openpilotgcs-synthetics/AuthorsModel.qml</file>
|
||||
<file>images/opie_90x120.gif</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 350 KiB |
@ -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 {
|
||||
anchors.left: logo.right
|
||||
@ -76,7 +87,15 @@ Rectangle {
|
||||
Layout.fillWidth: true
|
||||
font.pixelSize: 14
|
||||
font.bold: true
|
||||
|
||||
MouseArea {
|
||||
id: easter_egg
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
opie.visible = !opie.visible
|
||||
}
|
||||
}
|
||||
}
|
||||
Text {
|
||||
id: versionLabel
|
||||
|
@ -348,6 +348,7 @@ void VehicleConfigurationHelper::applyActuatorConfiguration()
|
||||
}
|
||||
|
||||
for (quint16 i = 0; i < ActuatorSettings::CHANNELUPDATEFREQ_NUMELEM; i++) {
|
||||
data.ChannelUpdateFreq[i] = updateFrequence;
|
||||
if (m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_REVO) {
|
||||
if (i == 1) {
|
||||
data.ChannelUpdateFreq[i] = ANALOG_SERVO_FREQUENCE;
|
||||
@ -357,7 +358,6 @@ void VehicleConfigurationHelper::applyActuatorConfiguration()
|
||||
data.ChannelUpdateFreq[i] = ANALOG_SERVO_FREQUENCE;
|
||||
}
|
||||
}
|
||||
data.ChannelUpdateFreq[i] = updateFrequence;
|
||||
}
|
||||
|
||||
actSettings->setData(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user