mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Fix small bugt in the revo calibration
This commit is contained in:
parent
07f8922f2f
commit
1ac807e1e0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user