mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Revert new PID stuff and move it to a separate branch for now.
This commit is contained in:
parent
14f087a140
commit
6ab48fc438
11 changed files with 30 additions and 187 deletions
10
src/utils.c
10
src/utils.c
|
@ -14,16 +14,6 @@ int constrain(int amt, int low, int high)
|
|||
return amt;
|
||||
}
|
||||
|
||||
float constrainf(float amt, float low, float high)
|
||||
{
|
||||
if (amt < low)
|
||||
return low;
|
||||
else if (amt > high)
|
||||
return high;
|
||||
else
|
||||
return amt;
|
||||
}
|
||||
|
||||
void initBoardAlignment(void)
|
||||
{
|
||||
float roll, pitch, yaw;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue