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

OP-1150 UI for thermal calibration: get rid of accel_scale no more needed after refactoring

This commit is contained in:
Alessio Morale 2014-02-03 20:25:59 +01:00
parent 27c19d7cb1
commit ef066a63b1
2 changed files with 3 additions and 4 deletions

View File

@ -113,9 +113,9 @@ void ConfigCCAttitudeWidget::sensorsUpdated(UAVObject *obj)
disconnect(obj, SIGNAL(objectUpdated(UAVObject *)), this, SLOT(sensorsUpdated(UAVObject *))); disconnect(obj, SIGNAL(objectUpdated(UAVObject *)), this, SLOT(sensorsUpdated(UAVObject *)));
disconnect(&timer, SIGNAL(timeout()), this, SLOT(timeout())); disconnect(&timer, SIGNAL(timeout()), this, SLOT(timeout()));
float x_bias = listMean(x_accum) / ACCEL_SCALE; float x_bias = listMean(x_accum);
float y_bias = listMean(y_accum) / ACCEL_SCALE; float y_bias = listMean(y_accum);
float z_bias = (listMean(z_accum) + 9.81) / ACCEL_SCALE; float z_bias = (listMean(z_accum) + 9.81);
float x_gyro_bias = listMean(x_gyro_accum); float x_gyro_bias = listMean(x_gyro_accum);
float y_gyro_bias = listMean(y_gyro_accum); float y_gyro_bias = listMean(y_gyro_accum);

View File

@ -67,7 +67,6 @@ private:
static const float DEFAULT_ENABLED_ACCEL_TAU = 0.1; static const float DEFAULT_ENABLED_ACCEL_TAU = 0.1;
static const int NUM_SENSOR_UPDATES = 300; static const int NUM_SENSOR_UPDATES = 300;
static const float ACCEL_SCALE = 0.004f * 9.81f;
protected: protected:
virtual void enableControls(bool enable); virtual void enableControls(bool enable);
}; };