mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 06:23:33 +08:00
fix bug in matrix wrap function (#83)
This commit is contained in:
committed by
Julian Kent
parent
4a4309327a
commit
26fd962cbe
@@ -31,7 +31,7 @@ bool is_finite(Type x) {
|
||||
template<typename Type>
|
||||
Type wrap(Type x, Type low, Type high) {
|
||||
// already in range
|
||||
if (low < x && x < high) {
|
||||
if (low <= x && x < high) {
|
||||
return x;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user