mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 18:27:35 +08:00
mc: add SYS_VEHICLE_RESP param to configure vehicle responsiveness
This commit is contained in:
@@ -198,4 +198,16 @@ const T sqrt_linear(const T &value)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Linear interpolation between 2 points a, and b.
|
||||
* s=0 return a
|
||||
* s=1 returns b
|
||||
* Any value for s is valid.
|
||||
*/
|
||||
template<typename T>
|
||||
const T lerp(const T &a, const T &b, const T &s)
|
||||
{
|
||||
return (static_cast<T>(1) - s) * a + s * b;
|
||||
}
|
||||
|
||||
} /* namespace math */
|
||||
|
||||
Reference in New Issue
Block a user