From 1ac807e1e0e10a1f701edba3f311692adda17437 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Fri, 15 Jun 2012 13:15:21 -0500 Subject: [PATCH] Fix small bugt in the revo calibration --- ground/openpilotgcs/src/plugins/config/configrevowidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/config/configrevowidget.cpp b/ground/openpilotgcs/src/plugins/config/configrevowidget.cpp index 48db4a3aa..5364fbb44 100644 --- a/ground/openpilotgcs/src/plugins/config/configrevowidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configrevowidget.cpp @@ -546,13 +546,15 @@ void ConfigRevoWidget::doStartSixPointCalibration() mag_accum_y.clear(); mag_accum_z.clear(); + UAVObject::Metadata mdata; + #ifdef SIX_POINT_CAL_ACCEL /* Need to get as many accel updates as possible */ Accels * accels = Accels::GetInstance(getObjectManager()); Q_ASSERT(accels); initialAccelsMdata = accels->getMetadata(); - UAVObject::Metadata mdata = initialAccelsMdata; + mdata = initialAccelsMdata; UAVObject::SetFlightTelemetryUpdateMode(mdata, UAVObject::UPDATEMODE_PERIODIC); mdata.flightTelemetryUpdatePeriod = 100; accels->setMetadata(mdata);