Files
Felix Ruess 603b40a513 [airborne] fix code style on (nearly) all files
```
find sw/airborne/ -regextype posix-extended -regex 'sw/airborne/.*(chibios-libopencm3|lpcusb|efsl|lpc21/include|lpc21/test/bootloader|subsystems/ahrs)' -prune -o -name '*.[ch]' -exec ./fix_code_style.sh {} +
```

ignored ahrs (for now) to not create unnecessary conflicts for some pending changes..
2014-12-17 02:15:06 +01:00

23 lines
534 B
C

#ifndef PAPARAZZI_H
#define PAPARAZZI_H
#include <inttypes.h>
typedef int16_t pprz_t; /* type of commands */
#define MAX_PPRZ 9600
#define MIN_PPRZ -MAX_PPRZ
#define TRIM_PPRZ(pprz) (pprz < MIN_PPRZ ? MIN_PPRZ : \
(pprz > MAX_PPRZ ? MAX_PPRZ : \
pprz))
#define TRIM_UPPRZ(pprz) (pprz < 0 ? 0 : \
(pprz > MAX_PPRZ ? MAX_PPRZ : \
pprz))
#if defined FBW && defined AP
#define SINGLE_MCU 1
#endif
#endif /* PAPARAZZI_H */