mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Made PG config() functions const
This commit is contained in:
parent
9f2c90872e
commit
b1fb59c464
20 changed files with 227 additions and 210 deletions
|
@ -358,7 +358,7 @@ void performAcclerationCalibration(void)
|
|||
sensorCalibrationSolveForOffset(&calState, accTmp);
|
||||
|
||||
for (int axis = 0; axis < 3; axis++) {
|
||||
accelerometerConfig()->accZero.raw[axis] = lrintf(accTmp[axis]);
|
||||
accelerometerConfigMutable()->accZero.raw[axis] = lrintf(accTmp[axis]);
|
||||
}
|
||||
|
||||
/* Not we can offset our accumulated averages samples and calculate scale factors and calculate gains */
|
||||
|
@ -375,7 +375,7 @@ void performAcclerationCalibration(void)
|
|||
sensorCalibrationSolveForScale(&calState, accTmp);
|
||||
|
||||
for (int axis = 0; axis < 3; axis++) {
|
||||
accelerometerConfig()->accGain.raw[axis] = lrintf(accTmp[axis] * 4096);
|
||||
accelerometerConfigMutable()->accGain.raw[axis] = lrintf(accTmp[axis] * 4096);
|
||||
}
|
||||
|
||||
saveConfigAndNotify();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue