This commit is contained in:
Candas1 2020-10-27 20:24:56 +01:00 committed by GitHub
parent 4ba8a8d82a
commit 5d954a05aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -569,9 +569,9 @@ int addDeadBand(int16_t u, int16_t deadBand, int16_t in_min, int16_t in_mid, int
if(u > in_mid - deadBand && u < in_mid + deadBand) {
return 0;
} else if(u > 0) {
return MAP(u, in_mid + deadband, in_max, 0, out_max);
return MAP(u, in_mid + deadBand, in_max, 0, out_max);
} else {
return MAP(u, in_mid - deadband, in_min, out_min, 0);
return MAP(u, in_mid - deadBand, in_min, out_min, 0);
}
}