Commit Graph

34464 Commits

Author SHA1 Message Date
Andrew Tridgell
55e4b64755 AP_Compass: don't apply offsets twice in SITL 2018-10-19 16:03:45 +11:00
vierfuffzig
5b955333ce AP_OSD: fix BLHAMPS current divisor 2018-10-19 15:05:53 +11:00
Peter Barker
e9d6c47f76 Tools: autotest: correct lamda->lambda 2018-10-19 08:54:56 +11:00
Peter Barker
a66cc52573 Tools: autotest: provide description of exceptions in constructors 2018-10-19 08:52:44 +11:00
Peter Barker
b276034c60 APM_Control: correct use of incorrect abs functions 2018-10-19 08:46:43 +11:00
Peter Barker
99090b7170 Tools: build_ci.sh: enable math index checking for sitltest-rover 2018-10-19 08:46:43 +11:00
Peter Barker
560f17a570 AP_NavEKF3: use union to alias array and struct access to states
This avoids creating two pointers of different types to the same memory.

Having two pointers to the same memory can lead to the compiler
optimising code such that a write to one pointer is rearranged to be
either before or after a read from the other pointer depending on
which is deemed faster - not a good outcome.
2018-10-19 08:46:43 +11:00
Peter Barker
3a79ae4eca AP_NavEKF2: use union to alias array and struct access to states
This avoids creating two pointers of different types to the same memory.

Having two pointers to the same memory can lead to the compiler
optimising code such that a write to one pointer is rearranged to be
either before or after a read from the other pointer depending on which
is deemed faster - not a good outcome.
2018-10-19 08:46:43 +11:00
Peter Barker
fb3b976aa2 wscript: add enable-math-check-indexes configure option 2018-10-19 08:46:43 +11:00
Peter Barker
d4c3caf592 Tools: ardupilotwaf: add enable-math-check-indexes configure option 2018-10-19 08:46:43 +11:00
Peter Barker
154d771e6c AP_Math: correct compilation when running MATH_CHECK_INDEXES 2018-10-19 08:46:43 +11:00
Peter Barker
27e3a89158 AP_NavEKF3: correct compilation when running MATH_CHECK_INDEXES 2018-10-19 08:46:43 +11:00
Peter Barker
fb176b544f AP_NavEKF2: correct compilation when running MATH_CHECK_INDEXES 2018-10-19 08:46:43 +11:00
Andrew Tridgell
009786a338 Plane: small update to failsafe documentation 2018-10-18 11:38:07 +11:00
Andrew Tridgell
20c18ec5d6 mavlink: submodule update 2018-10-18 11:05:23 +11:00
Andrew Tridgell
28af4ea2a5 mavlink: update to master 2018-10-18 11:03:55 +11:00
Andrew Tridgell
c622a4c4d6 HAL_ChibiOS: fixed output pins on F100 iomcu 2018-10-17 16:45:37 +11:00
Andrew Tridgell
6ec87528db AP_IOMCU: fixed RCIN failsafe 2018-10-17 15:11:28 +11:00
Andrew Tridgell
7b67146bc4 HAL_ChibiOS: use less memory in SoftSigReader 2018-10-17 15:11:28 +11:00
Andrew Tridgell
d083cd87d6 HAL_ChibiOS: disable debug code by default for iomcu
use --enable-asserts instead
2018-10-17 15:11:28 +11:00
Andrew Tridgell
d7aaaa35bd HAL_ChibiOS: disable RCIN and timer threads for iomcu 2018-10-17 15:11:28 +11:00
Andrew Tridgell
92d8ef0e76 AP_IOMCU: run the rcin timer tick in main loop
we no longer run a separate RCIN thread
2018-10-17 15:11:28 +11:00
Andrew Tridgell
8a4e0bd58c HAL_ChibiOS: fixed RCIN for iomcu
we need to disable/re-enable DMA on each IRQ for the STM32F10x
2018-10-17 15:11:28 +11:00
Andrew Tridgell
15141a6a5a HAL_ChibiOS: allow for no RCIN or TIMER thread
saves memory on iomcu
2018-10-17 15:11:28 +11:00
Andrew Tridgell
4674a1c68d HAL_ChibiOS: fixed system time for clocks other than 1MHz
needed for IOMCU
2018-10-17 15:11:28 +11:00
Andrew Tridgell
298a91ac7c HAL_ChibiOS: allow reduction of memory for SoftSigReader
for IOMCU
2018-10-17 15:11:28 +11:00
Andrew Tridgell
cd9179e733 AP_BoardConfig: fixed for 8 PWM outputs in IOMCU 2018-10-17 15:11:28 +11:00
rain-er
565b370330 UART4 added for BLHeli ESC telemetry 2018-10-17 13:57:19 +11:00
Andrew Tridgell
de39318f6d autotest: increase GPS AUTO glitch timeout
this was timing out in CI
2018-10-17 13:56:06 +11:00
Andrew Tridgell
9b3788c83c AP_RPM: treat RPM_TYPE 1 as type 2 on non-PX4
makes upgrades easier
2018-10-17 13:55:01 +11:00
Andrew Tridgell
925555c995 AP_Compass: move accum fields to frontend
this is needed to ensure they are per-instance. Without this the SITL
backend produces zero for all but the first instance. The same would
be true for any multi-instance backend
2018-10-17 12:54:22 +11:00
Andrew Tridgell
83065d5e88 AP_Compass: convert SITL to new accumulate approach 2018-10-17 12:54:22 +11:00
Andrew Tridgell
1978a0cb94 ArduCopter: fixed build warnings 2018-10-17 12:54:22 +11:00
Andrew Tridgell
6af709e617 SRV_Channel: fixed build warnings 2018-10-17 12:54:22 +11:00
Andrew Tridgell
93dbcf88b8 AP_Volz_Protocol: fixed build warnings 2018-10-17 12:54:22 +11:00
Andrew Tridgell
6f480c98cc AP_SBusOut: fixed build warnings 2018-10-17 12:54:22 +11:00
Andrew Tridgell
672b4be3d2 AP_RSSI: fixed build warnings 2018-10-17 12:54:22 +11:00
Andrew Tridgell
9e17275488 AP_BattMonitor: fixed build warnings 2018-10-17 12:54:22 +11:00
Andrew Tridgell
b1928d959b AP_Arming: fixed build warnings 2018-10-17 12:54:22 +11:00
Andrew Tridgell
feea73ee1a SITL: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
1d6b58f9ca DataFlash: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
f662cf55e5 AP_UAVCAN: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
046bcfa0a9 AP_SmartRTL: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
b1e4434332 AP_RangeFinder: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
530138ded4 AP_RAMTRON: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
68f463b29d AP_Radio: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
17049ff5f5 AP_OSD: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
a1f1e7e435 AP_OpticalFlow: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
bf829cd792 AP_Notify: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell
dedfa54d5a AP_IRLock: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00