mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +03:00
Moved accelerometerTrims into accelerometerConfig()
This commit is contained in:
parent
a562b8fa12
commit
ee8a1676c4
11 changed files with 21 additions and 32 deletions
|
@ -377,11 +377,12 @@ static void applyAccelerationTrims(const flightDynamicsTrims_t *accelerationTrim
|
|||
acc.accSmooth[Z] -= accelerationTrims->raw[Z];
|
||||
}
|
||||
|
||||
void updateAccelerationReadings(rollAndPitchTrims_t *rollAndPitchTrims)
|
||||
void accUpdate(rollAndPitchTrims_t *rollAndPitchTrims)
|
||||
{
|
||||
if (!acc.dev.read(&acc.dev)) {
|
||||
return;
|
||||
}
|
||||
acc.isAccelUpdatedAtLeastOnce = true;
|
||||
|
||||
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
||||
DEBUG_SET(DEBUG_ACCELEROMETER, axis, acc.dev.ADCRaw[axis]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue