mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Trivial changes
- use inline functions for gpio (typesafe, no speed penalty) - fix sortSerialPortFunctions (original was IMO broken) - allow softserial port on sonar pin when FEATURE_SONAR is not enabled - minor style changes and comments
This commit is contained in:
parent
fd32ad6fcb
commit
e179218caf
5 changed files with 20 additions and 20 deletions
|
@ -190,8 +190,7 @@ void annexCode(void)
|
|||
rcCommand[axis] = lookupPitchRollRC[tmp2] + (tmp - tmp2 * 100) * (lookupPitchRollRC[tmp2 + 1] - lookupPitchRollRC[tmp2]) / 100;
|
||||
prop1 = 100 - (uint16_t)currentProfile->controlRateConfig.rollPitchRate * tmp / 500;
|
||||
prop1 = (uint16_t)prop1 * prop2 / 100;
|
||||
}
|
||||
if (axis == YAW) {
|
||||
} else if (axis == YAW) {
|
||||
if (currentProfile->yaw_deadband) {
|
||||
if (tmp > currentProfile->yaw_deadband) {
|
||||
tmp -= currentProfile->yaw_deadband;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue