Randy Mackay
28ad2d5ee0
Git: update contributing page to use ArduPilot instead of APM
2018-10-22 15:36:36 +09:00
Peter Barker
41b6f30450
AP_OSD: add include for WITH_SEMAPHORE
2018-10-22 11:15:47 +11:00
Andrew Tridgell
1c3d90d8b5
scripts: added DrotekP3Pro to autobuild
2018-10-21 09:59:44 +11:00
Andrew Tridgell
d644150871
HAL_ChibiOS: fixes for DrotekP3Pro
2018-10-21 09:59:44 +11:00
Kevin Lopez Alvarez
9f97172cce
AP_BoardConfig: add ChibiOS FMUv4pro defines
2018-10-21 09:59:44 +11:00
Kevin Lopez Alvarez
ab7c7afd1d
AP_HAL: add ChibiOS FMUv4pro
2018-10-21 09:59:44 +11:00
Kevin Lopez Alvarez
6f99c706d6
HAL_ChibiOS: add MCU tables for STM32F469
2018-10-21 09:59:44 +11:00
Kevin Lopez Alvarez
bf745d1960
HAL_ChibiOS: add DrotekP3Pro hardware definitions
2018-10-21 09:59:44 +11:00
Willian Galvani
bf1429ead7
Tools: Autotest: Fix ArduSub autotest
2018-10-21 09:01:14 +11:00
Peter Barker
1c1d651979
AP_NavEKF2: add space for null-termination
...
This is simply to preserve existing behaviour when snprintf starts to
null-terminate strings
2018-10-21 07:54:30 +11:00
Peter Barker
f90dd0c156
AP_HAL: add simple tests for null-termination
2018-10-21 07:54:30 +11:00
Peter Barker
9923bd1fd2
AP_BattMonitor: use sizeof(array) in place of constant
2018-10-21 07:54:30 +11:00
Peter Barker
21eacc5e31
AP_Arming: account for snprintf now null-terminating strings
2018-10-21 07:54:30 +11:00
Peter Barker
96b5be0e7d
GCS_MAVLink: account for snprintf now null-terminating strings
2018-10-21 07:54:30 +11:00
Peter Barker
4c794ebba3
DataFlash: account for snprintf now null-terminating strings
2018-10-21 07:54:30 +11:00
Peter Barker
de3244e26c
AP_OSD: account for snprintf now null-terminating strings
2018-10-21 07:54:30 +11:00
Peter Barker
33e3d6e254
AP_HAL: Util: make vsnprintf and snprintf always null-terminate
...
The C++ standard indicates these functions always return a
null-terminated string. We should rename these functions if we're not
going to conform to the standards.
From https://en.cppreference.com/w/cpp/io/c/vfprintf :
"Writes the results to a character string buffer. At most buf_size-1
characters are written. The resulting character string will be
terminated with a null character"
We are still not standards-compliant in the case a length of 0 is passed
in, returning 0 where we should return the space that would be required
to store the formatted string.
2018-10-21 07:54:30 +11:00
Phillip Kocmoud
44fb61da37
HAL_ChibiOS: mRo X2.1-777 / hwdef.dat
...
Set proper sensor orientation.
2018-10-21 07:50:44 +11:00
Andre Kjellstrup
9ebb11ecd9
Location: added Elvenes airport (ENLV)
2018-10-20 18:25:29 +11:00
Peter Barker
0142265f67
AP_Mount: make a copy of ID for mavlink_msg_param_set_send
...
The send function is expecting an array of the full length, so passing i
na null-terminated char* may result in uninitialised data (or
information leak)
2018-10-20 10:17:50 +11:00
vierfuffzig
83f4f5c347
AP_BLHeli: add motor pole parameter
2018-10-20 10:15:34 +11:00
Peter Barker
33a215e8be
Vagrant: correct init script so profiles work; cosmic support
...
Had to increase the memory allowed to the machine as it appeared to be
running out
2018-10-19 20:13:01 +11:00
Andrew Tridgell
84d7160128
AP_Compass: use new accumulate functions for UAVCAN
2018-10-19 16:03:45 +11:00
Andrew Tridgell
579a84b53e
AP_Compass: use new accumulate functions for AK8963
2018-10-19 16:03:45 +11:00
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