mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Build and pitotmeter fixup
This commit is contained in:
parent
ec70fcae49
commit
afe057cb18
12 changed files with 38 additions and 29 deletions
|
@ -500,7 +500,7 @@ static void imuUpdateMeasuredRotationRate(void)
|
|||
imuAccumulatedRateTime = 0.0f;
|
||||
#else
|
||||
for (axis = 0; axis < 3; axis++) {
|
||||
imuMeasuredRotationBF.A[axis] = gyroADC[axis] * gyroScale;
|
||||
imuMeasuredRotationBF.A[axis] = gyro.gyroADC[axis] * gyroScale;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -520,7 +520,7 @@ static void imuUpdateMeasuredAcceleration(void)
|
|||
#else
|
||||
/* Convert acceleration to cm/s/s */
|
||||
for (axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
||||
imuAccelInBodyFrame.A[axis] = accADC[axis] * (GRAVITY_CMSS / acc.dev.acc_1G);
|
||||
imuAccelInBodyFrame.A[axis] = acc.accADC[axis] * (GRAVITY_CMSS / acc.dev.acc_1G);
|
||||
imuMeasuredGravityBF.A[axis] = imuAccelInBodyFrame.A[axis];
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue