mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 00:53:35 +08:00
MulticopterPositionControl: add horizontal margin for saturation cases
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user