MulticopterPositionControl: add horizontal margin for saturation cases

This commit is contained in:
Matthias Grob
2021-09-08 19:55:27 +02:00
parent 06a91ec752
commit 58ea97a699
7 changed files with 54 additions and 12 deletions
+6
View File
@@ -54,6 +54,12 @@ int signNoZero(T val)
return (T(0) <= val) - (val < T(0));
}
template<typename T>
T sq(T val)
{
return val * val;
}
/*
* So called exponential curve function implementation.
* It is essentially a linear combination between a linear and a cubic function.