mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Removed bound checking assertions
This commit is contained in:
@@ -173,9 +173,6 @@ controls_tick() {
|
|||||||
/* scale to fixed-point representation (-10000..10000) */
|
/* scale to fixed-point representation (-10000..10000) */
|
||||||
scaled *= 20;
|
scaled *= 20;
|
||||||
|
|
||||||
ASSERT(scaled >= -50000);
|
|
||||||
ASSERT(scaled <= 50000);
|
|
||||||
|
|
||||||
if (conf[PX4IO_P_RC_CONFIG_OPTIONS] & PX4IO_P_RC_CONFIG_OPTIONS_REVERSE)
|
if (conf[PX4IO_P_RC_CONFIG_OPTIONS] & PX4IO_P_RC_CONFIG_OPTIONS_REVERSE)
|
||||||
scaled = -scaled;
|
scaled = -scaled;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user