From 5cc1e30e4fea92f32004288d8511de7e63c0c506 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 25 Feb 2013 08:31:43 +0100 Subject: [PATCH] Corrected assertion range --- apps/px4io/controls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/px4io/controls.c b/apps/px4io/controls.c index 21b4edcc37..3cc7140de5 100644 --- a/apps/px4io/controls.c +++ b/apps/px4io/controls.c @@ -173,8 +173,8 @@ controls_tick() { /* scale to fixed-point representation (-10000..10000) */ scaled *= 20; - ASSERT(scaled >= -15000); - ASSERT(scaled <= 15000); + ASSERT(scaled >= -50000); + ASSERT(scaled <= 50000); if (conf[PX4IO_P_RC_CONFIG_OPTIONS] & PX4IO_P_RC_CONFIG_OPTIONS_REVERSE) scaled = -scaled;