mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-12 02:54:15 +01:00
CopterControl: Fix build due to changing the AttitudeRaw structure.
This commit is contained in:
parent
2871c75a79
commit
f725fbe128
@ -255,8 +255,8 @@ static int8_t updateSensors(AttitudeRawData * attitudeRaw)
|
|||||||
y += -accel_data.y;
|
y += -accel_data.y;
|
||||||
z += -accel_data.z;
|
z += -accel_data.z;
|
||||||
} while ( (i < 32) && (samples_remaining > 0) );
|
} while ( (i < 32) && (samples_remaining > 0) );
|
||||||
attitudeRaw->gyrotemp[0] = samples_remaining;
|
attitudeRaw->temperature[ATTITUDERAW_TEMPERATURE_GYRO] = samples_remaining;
|
||||||
attitudeRaw->gyrotemp[1] = i;
|
attitudeRaw->temperature[ATTITUDERAW_TEMPERATURE_ACCEL] = i;
|
||||||
|
|
||||||
float accel[3] = {(float) x / i, (float) y / i, (float) z / i};
|
float accel[3] = {(float) x / i, (float) y / i, (float) z / i};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user