|
|
|
@ -23,3 +23,16 @@
@@ -23,3 +23,16 @@
|
|
|
|
|
|
|
|
|
|
extern const AP_HAL::HAL& hal; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
Return true if value is between lower and upper bound. False otherwise. |
|
|
|
|
*/ |
|
|
|
|
bool is_bounded(int32_t value, int32_t lower_bound, int32_t upper_bound) |
|
|
|
|
{ |
|
|
|
|
if ((lower_bound < upper_bound) && |
|
|
|
|
(value > lower_bound) && (value < upper_bound)) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|