1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Second draft of the tuneup.

This uses ints for the sensitivity instead of mapping floats back and forth.
 Also the stick position is read directly, without the RC_Rate affecting this value.
This commit is contained in:
Ben Hitchcock 2015-01-07 21:54:13 +08:00
parent 6b7c9facd3
commit 69d94c81e1
8 changed files with 23 additions and 11 deletions

View file

@ -338,6 +338,11 @@ void mwArm(void)
}
}
int32_t getRcStickPosition(int32_t axis) {
return min(abs(rcData[axis] - masterConfig.rxConfig.midrc), 500);
}
// Automatic ACC Offset Calibration
bool AccInflightCalibrationArmed = false;
bool AccInflightCalibrationMeasurementDone = false;