mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-28 17:54:15 +01:00
OP-1150 UI for thermal calibration: get rid of accel_scale no more needed after refactoring
This commit is contained in:
parent
27c19d7cb1
commit
ef066a63b1
@ -113,9 +113,9 @@ void ConfigCCAttitudeWidget::sensorsUpdated(UAVObject *obj)
|
||||
disconnect(obj, SIGNAL(objectUpdated(UAVObject *)), this, SLOT(sensorsUpdated(UAVObject *)));
|
||||
disconnect(&timer, SIGNAL(timeout()), this, SLOT(timeout()));
|
||||
|
||||
float x_bias = listMean(x_accum) / ACCEL_SCALE;
|
||||
float y_bias = listMean(y_accum) / ACCEL_SCALE;
|
||||
float z_bias = (listMean(z_accum) + 9.81) / ACCEL_SCALE;
|
||||
float x_bias = listMean(x_accum);
|
||||
float y_bias = listMean(y_accum);
|
||||
float z_bias = (listMean(z_accum) + 9.81);
|
||||
|
||||
float x_gyro_bias = listMean(x_gyro_accum);
|
||||
float y_gyro_bias = listMean(y_gyro_accum);
|
||||
|
@ -67,7 +67,6 @@ private:
|
||||
|
||||
static const float DEFAULT_ENABLED_ACCEL_TAU = 0.1;
|
||||
static const int NUM_SENSOR_UPDATES = 300;
|
||||
static const float ACCEL_SCALE = 0.004f * 9.81f;
|
||||
protected:
|
||||
virtual void enableControls(bool enable);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user