mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 10:04:06 +08:00
Corrected assertion range
This commit is contained in:
parent
2ad41b8373
commit
5cc1e30e4f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user