FlightTasks: added possibility to apply task parameters from the vehicle command

This commit is contained in:
Matthias Grob
2018-04-05 07:30:12 +02:00
committed by Beat Küng
parent b1f24da05e
commit efd240904f
7 changed files with 45 additions and 3 deletions
+6
View File
@@ -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)
{