ardupilot/libraries/AP_HAL_SITL
Gustavo Jose de Sousa 2246343ec7 AP_HAL_SITL: pass signed value to abs()
Passing an unsigned value to abs() causes compilation error in gcc 6.1.1
(and doing that doesn't make sense too).

As a bonus, this patch fixes the code, since, for two unsigned integers
a and b, such that a > b, (a - b) without the casting to a signed
integer would produce garbage in the context of this patch. The type
int32_t is enough for the cases covered by this patch.
2016-05-16 15:04:22 -03:00
..
AP_HAL_SITL.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
AP_HAL_SITL_Namespace.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
AP_HAL_SITL_Private.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
AnalogIn.cpp HAL_SITL: cleanup class names 2016-01-10 17:43:01 +11:00
AnalogIn.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
HAL_SITL_Class.cpp HAL_SITL: added uartF 2016-04-20 09:39:49 +10:00
HAL_SITL_Class.h AP_HAL_SITL: Remove unused extern declaration for HALs 2015-11-20 16:32:45 +09:00
RCInput.cpp HAL_SITL: support simulator RC input 2016-05-04 12:51:28 +10:00
RCInput.h HAL_SITL: cleanup class names 2016-01-10 17:43:01 +11:00
RCOutput.cpp HAL_SITL: cleanup class names 2016-01-10 17:43:01 +11:00
RCOutput.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
SITL_State.cpp HAL_SITL: support simulator RC input 2016-05-04 12:51:28 +10:00
SITL_State.h HAL_SITL: added --rtscts option to SITL 2016-05-16 16:51:26 +10:00
SITL_cmdline.cpp AP_HAL_SITL: ensure specified SITL model is found 2016-05-16 13:04:15 -03:00
Scheduler.cpp Global: remove system_initializing() from scheduler 2016-02-12 23:42:34 -02:00
Scheduler.h Global: remove system_initializing() from scheduler 2016-02-12 23:42:34 -02:00
Semaphores.cpp HAL_SITL: added semaphore support 2015-12-21 07:38:30 +11:00
Semaphores.h HAL_SITL: added semaphore support 2015-12-21 07:38:30 +11:00
Storage.cpp HAL_SITL: cleanup class names 2016-01-10 17:43:01 +11:00
Storage.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
UARTDriver.cpp HAL_SITL: added --rtscts option to SITL 2016-05-16 16:51:26 +10:00
UARTDriver.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
Util.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
fenv_polyfill.h AP_HAL_SITL: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
sitl_barometer.cpp AP_HAL_SITL: pass signed value to abs() 2016-05-16 15:04:22 -03:00
sitl_compass.cpp AP_HAL_SITL: pass signed value to abs() 2016-05-16 15:04:22 -03:00
sitl_gps.cpp AP_HAL_SITL: Fix typos 2016-05-13 19:20:06 -03:00
sitl_ins.cpp AP_HAL_SITL: pass signed value to abs() 2016-05-16 15:04:22 -03:00
sitl_optical_flow.cpp Global: start using cmath instead of math.h 2016-04-05 21:06:19 -07:00
system.cpp HAL_SITL: cleanup class names 2016-01-10 17:43:01 +11:00