mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
OP-1432 Reverse_all_motors_gui_fix : Fixes all Hexacopters error when Gcs load "Reverse all motors" parameter.
This commit is contained in:
parent
99f09d588f
commit
c90bf0f8e0
@ -425,7 +425,7 @@ void ConfigMultiRotorWidget::refreshWidgetsValues(QString frameType)
|
|||||||
// get motor 2 value for Yaw and Roll
|
// get motor 2 value for Yaw and Roll
|
||||||
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
||||||
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_YAW);
|
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_YAW);
|
||||||
setYawMixLevel(-qRound(value / 1.27));
|
setYawMixLevel(qRound(value / 1.27));
|
||||||
|
|
||||||
// change channels
|
// change channels
|
||||||
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
||||||
@ -454,7 +454,7 @@ void ConfigMultiRotorWidget::refreshWidgetsValues(QString frameType)
|
|||||||
// get motor 2 value for Yaw and Roll
|
// get motor 2 value for Yaw and Roll
|
||||||
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
||||||
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_YAW);
|
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_YAW);
|
||||||
setYawMixLevel(-qRound(value / 1.27));
|
setYawMixLevel(qRound(value / 1.27));
|
||||||
|
|
||||||
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
||||||
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_ROLL);
|
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_ROLL);
|
||||||
@ -480,9 +480,9 @@ void ConfigMultiRotorWidget::refreshWidgetsValues(QString frameType)
|
|||||||
m_aircraft->mrPitchMixLevel->setValue(qRound(value / 1.27));
|
m_aircraft->mrPitchMixLevel->setValue(qRound(value / 1.27));
|
||||||
|
|
||||||
// get motor 2 value for Yaw and Roll
|
// get motor 2 value for Yaw and Roll
|
||||||
channel += 1;
|
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
||||||
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_YAW);
|
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_YAW);
|
||||||
setYawMixLevel(-qRound(value / 1.27));
|
setYawMixLevel(qRound(value / 1.27));
|
||||||
|
|
||||||
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
channel = m_aircraft->multiMotorChannelBox2->currentIndex() - 1;
|
||||||
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_ROLL);
|
value = getMixerVectorValue(mixer, channel, VehicleConfig::MIXERVECTOR_ROLL);
|
||||||
|
Loading…
Reference in New Issue
Block a user