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

OP-1397 Fetch default values for GyroTau

This commit is contained in:
Stefan Karlsson 2014-08-01 09:41:13 +02:00
parent 12589abe7e
commit f9343d9959

View File

@ -28,6 +28,7 @@
#include "configtxpidwidget.h"
#include "txpidsettings.h"
#include "hwsettings.h"
#include "stabilizationsettings.h"
#include "stabilizationsettingsbank1.h"
#include "stabilizationsettingsbank2.h"
#include "stabilizationsettingsbank3.h"
@ -196,8 +197,8 @@ static float defaultValueForPidOption(const StabilizationSettingsBankX & bank, c
float ConfigTxPIDWidget::getDefaultValueForPidOption(const QString & pidOption)
{
if (pidOption == "GyroTau") {
// TODO: Implement
return 0.0f;
StabilizationSettings *stab = qobject_cast<StabilizationSettings *>(getObject(QString("StabilizationSettings")));
return stab->getGyroTau();
}
uint bankNumber = m_txpid->pidBank->currentIndex() + 1;