mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 06:33:35 +08:00
FlightTasks: added possibility to apply task parameters from the vehicle command
This commit is contained in:
@@ -72,6 +72,12 @@ constexpr const _Tp &constrain(const _Tp &val, const _Tp &min_val, const _Tp &ma
|
||||
return (val < min_val) ? min_val : ((val > max_val) ? max_val : val);
|
||||
}
|
||||
|
||||
template<typename _Tp>
|
||||
inline constexpr bool isInRange(const _Tp &val, const _Tp &min_val, const _Tp &max_val)
|
||||
{
|
||||
return (min_val <= val) && (val <= max_val);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr T radians(const T degrees)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user