Commit Graph

21695 Commits

Author SHA1 Message Date
Peter Barker b319b275d5 AP_NavEKF2: zero H_MAG to prevent compiler error 2024-07-31 17:22:06 +10:00
Andrew Tridgell c8047cc595 HAL_ChibiOS: fixed build on Durandal 2021-02-22 10:07:22 +11:00
pkocmoud 66df41358b hwdef: update FRAM size to 32768 2021-02-17 14:44:12 +11:00
pkocmoud 0bee88c7ae hwdef: Back Port updated hwdefs for mRo boards 2021-02-17 14:44:06 +11:00
Andrew Tridgell 736886e1a9 AP_GPS: fixed pre-arm check on ublox M9 GPS
this prevents a failure from config of SOL and TMODE messages
2021-02-06 07:28:49 +11:00
Andrew Tridgell 03746c8145 AP_GPS: don't accept infinite accuracies for blending
these result in NaN values for velocities
2021-02-05 19:09:10 +11:00
Andrew Tridgell f31c5fd197 AP_GPS: prevent UAVCAN GPS from giving infinite accuracy values
this can happen due to the complex encodings of accuracies in UAVCAN
2021-02-05 19:09:08 +11:00
Andrew Tridgell 773771dd8d AP_GPS: fixed constrained NaN in EKF3 caused by bad GPS blending
if the accuracies reported are very low then we can do a division by
zero and this results in a constraining NaN for GPS vertical velocity
filter in NavEKF3_core::calcGpsGoodToAlign
2021-02-05 19:09:05 +11:00
Andrew Tridgell cba3d1358b AP_NavEKF3: 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:03 +11:00
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