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:
parent
6b7c9facd3
commit
69d94c81e1
8 changed files with 23 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue