1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

Ground/AHRS Calibration: Make sure it returns updateRaw to false after running

to stop from hammering telemetry and keep OP-AHRS smooth.  Also fixed bad
connection in magic waypoint.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1807 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2010-09-30 04:49:55 +00:00 committed by peabody124
parent e2d63cbf19
commit c69f884f01
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@
#define sign(x) ((x < 0) ? -1 : 1)
const double ConfigAHRSWidget::maxVarValue = 0.1;
const int ConfigAHRSWidget::calibrationDelay = 5; // Time to wait for the AHRS to do its calibration
const int ConfigAHRSWidget::calibrationDelay = 7; // Time to wait for the AHRS to do its calibration
ConfigAHRSWidget::ConfigAHRSWidget(QWidget *parent) : ConfigTaskWidget(parent)
{
@ -375,6 +375,7 @@ void ConfigAHRSWidget::attitudeRawUpdated(UAVObject * obj)
obj = dynamic_cast<UAVDataObject*>(getObjectManager()->getObject(QString("AHRSSettings")));
obj->getField(QString("UpdateRaw"))->setValue(initialUpdateRaw);
obj->getField(QString("UpdateFiltered"))->setValue(initialUpdateFiltered);
obj->updated();
getObjectManager()->getObject(QString("AttitudeRaw"))->setMetadata(initialMdata);
}
}

View File

@ -56,7 +56,7 @@ MagicWaypointGadgetWidget::MagicWaypointGadgetWidget(QWidget *parent) : QLabel(p
connect(this, SIGNAL(positionDesiredObjectChanged(double,double)), m_magicwaypoint->widgetPosition, SLOT(updateDesiredIndicator(double,double)));
// Catch changes in scale for visualization
connect(m_magicwaypoint->horizontalSliderScale, SIGNAL(valueChanged(int)), this, SLOT(scaleChanged(double)));
connect(m_magicwaypoint->horizontalSliderScale, SIGNAL(valueChanged(int)), this, SLOT(scaleChanged(int)));
}
MagicWaypointGadgetWidget::~MagicWaypointGadgetWidget()