mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 12:17:35 +08:00
committed by
Matthias Grob
parent
31450c407c
commit
4a4309327a
@@ -26,7 +26,7 @@ bool is_finite(Type x) {
|
||||
* @param x input possibly outside of the range
|
||||
* @param low lower limit of the allowed range
|
||||
* @param high upper limit of the allowed range
|
||||
* @return wrapped value inside the range
|
||||
* @return wrapped value inside the range, or NAN if value is too far away from range.
|
||||
*/
|
||||
template<typename Type>
|
||||
Type wrap(Type x, Type low, Type high) {
|
||||
|
||||
Reference in New Issue
Block a user