Andrew Tridgell
29f0ca3b6b
AP_NavEKF2: fixed memory corruption on push before init
...
this fixes a bug that happens with VISION_SPEED_ESTIMATE from a
companion computer, which may come in before the EKF buffers are
allocated. That causes a push to an uninitialised ringbuffer which
triggers memory corruption
found using the new memory guard system
2021-02-05 19:09:00 +11:00
Andrew Tridgell
6630c16535
HAL_ChibiOS: expand storage to 32k on boards with 32k FRAM
2021-02-05 19:08:58 +11:00
Andrew Tridgell
39e9b985a6
AP_HAL: change SITL to 32k eeprom.bin
2021-02-05 19:08:55 +11:00
Andrew Tridgell
2c06bbdcbe
GCS_MAVLINK: support deliberate parameter corruption
2021-02-05 19:08:53 +11:00
Andrew Tridgell
4b6ec99633
StorageManager: added parameter backup region
2021-02-05 19:08:48 +11:00
Andrew Tridgell
eaf23f2eb4
AP_InternalError: sync with master
...
added params_restored error
2021-02-05 19:08:46 +11:00
Andrew Tridgell
f90962aa0c
AP_Param: support restoring from parameter backup region
...
if header on primary parameter storage is corrupt then restore from
backup
2021-02-05 19:08:44 +11:00
Andy Piper
a3b76029d7
AP_HAL_ChibiOS: don't timeout after 11 bits on serial irqs
2021-01-26 17:09:35 +11:00
Andrew Tridgell
350275690c
AP_NavEKF3: only fuse airspeed if healthy
2021-01-06 09:33:48 +11:00
Andrew Tridgell
63f9acdaaa
AP_NavEKF2: only fuse airspeed if healthy
2021-01-06 09:33:48 +11:00
bnsgeyer
9a9c88829e
AP_Motors: tradheli - add support to determine below mid collective
2021-01-06 09:33:48 +11:00
bnsgeyer
d6a1dceb72
AP_Motors: updates to new integrator and make selectable
2021-01-06 09:33:48 +11:00
bnsgeyer
31580d82ee
AC_PID: add support to smoothly reset the integrator
2021-01-06 09:33:48 +11:00
bnsgeyer
ff6621f3b6
AP_Motors: Tradheli support for integrator management and hover collective learning
2021-01-06 09:33:48 +11:00
bnsgeyer
b6e0b6c692
AC_AttitudeControl: Tradheli support for integrator management and hover collective learning
2021-01-06 09:33:47 +11:00
bnsgeyer
06b4f259c0
AP_Motors: add DCP trim feature for Dual Heli
2021-01-06 09:33:47 +11:00
Andrew Tridgell
9706228fee
GCS_MAVLink: use MAV_SYS_STATUS_PREARM_CHECK
...
this allows GCS to continually display prearm check status
2021-01-06 09:33:47 +11:00
Andy Piper
43f609137b
Filter: correct harmonic notch docs and provide better defaults.
2021-01-06 09:33:47 +11:00
Hwurzburg
b4c0d40fb7
AP_GPS: expand gps rate description
2021-01-06 09:33:47 +11:00
Randy Mackay
833b6d05d1
AC_PosControl: fix typo in posxy_p param desc
2021-01-06 09:33:47 +11:00
Tatsuya Yamaguchi
fbccce3a4d
GCS_MAVLink: use micro64 instead of micros for time_usec
2021-01-06 09:33:47 +11:00
yaapu
551e6d9f8b
AP_RCProtocol: fix fport rssi
2021-01-06 09:33:47 +11:00
Andy Piper
c098a089b7
AP_Logger: correct units on raw accel data
2021-01-06 09:33:47 +11:00
Peter Barker
b6cf82bf47
AC_PrecLand: correct @User field in ACC_P_NSE documentation
2021-01-06 09:33:47 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
8291cbe604
AP_NavEKF3: fix vertical flyaways when rangefinder stops providing data
2021-01-06 09:33:47 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
2f554a26dd
AP_NavEKF2: fix vertical flyaways when rangefinder stops providing data
2021-01-06 09:33:47 +11:00
Phillip Kocmoud
3973de379d
hwdef:PixracerPro - Fix analog volt pin assignments
2020-11-03 08:18:11 +11:00
Andrew Tridgell
c03551e496
HAL_ChibiOS: fixed a race condition in UART DMA transmit
...
this fixes an issue seen on one board which caused a watchdog on high
uart DMA load. We have reproduced the issue on another board by
forcing a very high DMA transfer rate on the same DMA channel while
also requesting very high transfer rates on the UART. The likely race
is in the DMA transmit timeout code, and the simplest fix is to lock
out interrupts during the DMA setup to ensure the tx timeout cannot
trigger during the setup
2020-10-08 15:54:11 +11:00
Siddharth Purohit
4241b57702
AP_HAL_ChibiOS: keep a backup of storage for last 100 boots
2020-10-07 15:31:21 +11:00
Andrew Tridgell
b03e9c056e
AP_IOMCU: fixed bug in SBUS output when scanning for FPort input
...
when we are looking for FPort input, we normally switch UART3 on the
IOMCU to 115200 to look for inverted inputs at 115200 baudrate. We
need to disable this switching when we have SBUS output enabled to
prevent a change in the SBUS output baudrate
Many thanks to afishman for finding this bug
Fixes #15522
2020-10-07 14:59:42 +11:00
Andrew Tridgell
8ae1157bdd
HAL_ChibiOS: enable telem3 on Durandal
...
the RCIN issue is not there in the final production boards
2020-10-02 20:39:22 +10:00
chobits
bd48eb4403
AP_HAL_ChibiOS: fix kakutef7/mini motor glitch when using dshot
2020-10-02 10:08:54 +10:00
Peter Barker
21ae7d8153
GCS_MAVLink: do not process commands after we have decided to reboot
2020-10-02 09:55:51 +10:00
Josh Welsh
d24a3d7a66
AP_Motors: Tradheli servo_test fix
2020-10-02 09:55:20 +10:00
Andrew Tridgell
5287fb2e1b
HAL_ChibiOS: add a max quota of GPIO interrupts
...
This implements a max quota of GPIO interrupts per 100ms period to
prevent high interrupt counts from consuming all CPU and causing a
lockup. The limit is set as 10k interrupts per 0.1s period. That limit
should be high enough for all reasonable uses of GPIO interrupt
handlers while being below the level that causes significant CPU loads
and flight issues
This addresses issue #15384
2020-10-02 09:50:09 +10:00
Andrew Tridgell
9626689db5
AP_InternalError: added an internal error for GPIO ISR overload
2020-10-02 09:50:07 +10:00
Andrew Tridgell
d856bc7f5e
AP_HAL: added timer_tick() on GPIO
2020-10-02 09:50:04 +10:00
Andrew Tridgell
a7a27d62a0
AP_Compass: support probing RM3100 on all 4 addresses
2020-09-24 11:14:26 +10:00
Lucas De Marchi
8a01a8cddb
AP_HAL_Linux: RCInput_UDP: accept up to 16 channels
...
This allows more channels to be passed to RCInput_UDP protocol while
also allowing less than 8 channels - this is similar to the approach
used by SITL in which the packet size is used to figure out the number
of channels.
(cherry picked from commit 29d8586ea4
)
2020-09-16 23:00:29 -07:00
MATEKSYS
7e8d108e5c
HAL_ChibiOS: Add DPS310 for MatekF405-WING,F765-WING and H743
2020-09-02 19:36:03 +10:00
Andrew Tridgell
da71b66926
HAL_ChibiOS: fixed fast sampling on F32Lightning
...
this SPI bus on this board can't handle 8MHz
2020-09-02 06:43:47 +10:00
Andrew Tridgell
d4d1287261
AP_IOMCU: fixed handling of RC ignore failsafe option
...
this allows for ignoring SBUS failsafe on boards using an IOMCU
2020-08-25 12:41:41 +10:00
Andrew Tridgell
b633e62b89
AP_NavEKF2: apply min GPS accuracy at measurement point
...
this fixes an issue a RTK GPS gives 1cm horizontal and vertical
accuracy and that causes the variances to get too small
2020-08-25 12:39:14 +10:00
Andrew Tridgell
f8ef56be1b
AP_NavEKF3: apply min GPS accuracy at measurement point
...
this fixes an issue a RTK GPS gives 1cm horizontal and vertical
accuracy and that causes the variances to get too small
2020-08-25 12:39:11 +10:00
Siddharth Purohit
9553bc14d0
AP_Compass: fix reordering compass devid by priority at boot
2020-08-25 08:30:35 +10:00
Andrew Tridgell
92e35f6a9e
RC_Channel: fixed use of radio_in out of range for angle inputs
...
this prevents mis-calculation of the angle when RC input goes outside
of the configured range. This impacted on throttle nudge in plane when
reverse thrust was enabled
thanks to Pompecukor for reporting!
2020-08-12 09:51:41 +10:00
Josh Welsh
5ed5631c3c
AP_Airspeed: Add additional DLVR support 20inH2O 30inH2O 60inH2O
2020-08-12 08:03:40 +10:00
Siddharth Purohit
e86e8f03e3
AP_HAL: add methods to extract devid details
2020-07-27 19:53:02 +10:00
Siddharth Purohit
b7346f50f1
AP_Compass: reset compass ids not present after compass cal
...
also implement replacement mechanism for UAVCAN compasses
2020-07-27 19:50:30 +10:00
Andrew Tridgell
a6e5e92ab7
AP_RangeFinder: fixed legacy parsing of 65436 for lightware i2c
...
some lidars will probe as legacy protocol and return 65436 as range
2020-07-27 19:49:39 +10:00