1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

OP-1422 Tricopter_mixers_settings : Do the same calc as Gcs and round values so Wizard set same values as Gcs defaults. Little fix for HexaX wizard that set HexaH frame !

This commit is contained in:
Laurent Lalanne 2014-08-26 14:17:24 +02:00
parent 10f5d7c531
commit 458120cce2

View File

@ -440,8 +440,8 @@ void VehicleConfigurationHelper::applyMixerConfiguration(mixerChannelSettings ch
Q_ASSERT(field);
field->setValue((channels[i].throttle1 * 127) / 100, 0);
field->setValue((channels[i].throttle2 * 127) / 100, 1);
field->setValue((channels[i].roll * 127) / 100, 2);
field->setValue((channels[i].pitch * 127) / 100, 3);
field->setValue(qRound(((double)channels[i].roll * 127) / 100), 2);
field->setValue(qRound(((double)channels[i].pitch * 127) / 100), 3);
field->setValue((channels[i].yaw * 127) / 100, 4);
}
@ -1014,7 +1014,7 @@ void VehicleConfigurationHelper::setupHexaCopter()
}
case VehicleConfigurationSource::MULTI_ROTOR_HEXA_X:
{
frame = SystemSettings::AIRFRAMETYPE_HEXAH;
frame = SystemSettings::AIRFRAMETYPE_HEXAX;
// HexaX according to new mixer table and pitch-roll-yaw mixing at 100%
// Pitch Roll Yaw
// M1 { 1, -0.5, -1 },