Commit Graph

1741 Commits

Author SHA1 Message Date
Andrew Tridgell
ab4fb4a7de HAL_ChibiOS: use a 16 bit sysinterval_t on 16 bit timers
prevent mixed size subtraction errors
2021-12-18 12:17:22 +09:00
李孟晓
0cdd775d24 CUAV-X7: Add servo voltage detection pin 2021-12-18 12:17:22 +09:00
Andy Piper
db00de837a AP_HAL_ChibiOS: return correct value for tx_pending(). 2021-11-29 19:02:38 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
cb81c23040 AP_HAL_ChibiOS: disable FETtec OneWire device driver 2021-11-29 19:02:38 +09:00
Andrew Tridgell
72647b1a85 hwdef: added alternative Durandal 20602 IMU 2021-11-29 19:02:38 +09:00
bugobliterator
56d33cce7a AP_HAL_ChibiOS: account for TXFIFO when doing flow control detection 2021-10-17 19:03:42 -04:00
Andrew Tridgell
ad13c8816d HAL_ChibiOS: fixed orientation of ICM42605 on QiotekZealotF427 2021-10-17 19:03:42 -04:00
Andrew Tridgell
0c4de1b25a HAL_ChibiOS: disable soarding on FlywooF745 for flash space 2021-10-17 19:03:42 -04:00
mateksys
02245c4142 ChibiOS: add icm42605 as substitution for icm20602 2021-09-28 06:48:17 +09:00
Andrew Tridgell
a23bd5438a HAL_ChibiOS: fixed RTSCTS flow control issue
this fixes an issue reported on MatekH743, but also applies to other
boards. When not using DMA if there have been bytes written before the
auto flow control detection was enabled then these must be cleared
from _total_written so the flow control detection can work correctly
2021-09-13 18:47:07 +10:00
Andy Piper
74e4097f01 AP_HAL_ChibiOS: bdshot version of CUAVv5 2021-09-10 14:07:37 +09:00
Andy Piper
2c0d14c534 AP_HAL_ChibiOS: bdshot version of CUAVv5Nano 2021-09-10 14:07:37 +09:00
Andrew Tridgell
d0351581a0 HAL_ChibiOS: use more USB buffers on higher end F7 chips 2021-09-10 14:07:37 +09:00
Andrew Tridgell
d565549fad HAL_ChibiOS: reduce the impact of UART DMA contention
this changes the heuristics for UART TX DMA allocation to greatly
reduce the chances of DMA contention causing long delays on other
devices

This fixes issues with FETTec driver output and gimbal status messages
as reported by Amilcar and OlliW. The problem is particularly bad when
no GPS is connected to GPS1 on fmuv3 and derived boards (such as
CubeBlack)

key changes:

 - remember the contention_counter across begin() calls, as the GPS
   calls begin with new baudrates regularly

 - added a is_shared() API to Shared_DMA, allowing the UART driver to
   avoid TX DMA on shared streams when at low baudrates.
2021-09-10 14:07:37 +09:00
Andrew Tridgell
8843704aca HAL_ChibiOS: fixed GPIO lines for QioTekZealotF427 2021-09-10 14:07:37 +09:00
mateksys
29a028d361 Tools: added MatekF765-SE to autobuild 2021-08-28 14:41:27 +09:00
mateksys
de2cfe0702 AP_HAL_ChibiOS: add MatekF765-SE hwdef as a variant of MatekF765-Wing 2021-08-28 14:41:27 +09:00
QioTek
7b38bdb455 AP_HAL_ChibiOS: add Icm42605 as a backup to replace icm20649
AP_HAL_ChibiOS: add Icm42605 as a backup to replace icm20649
2021-08-28 14:41:27 +09:00
Hwurzburg
4761bd0eff AP_HAL_Chibios: Change RC in to RCINT to free a DMA channel 2021-08-28 14:41:27 +09:00
Andrew Tridgell
4143a21088 HAL_ChibiOS: allow FlywooF745 to build again 2021-08-28 14:41:27 +09:00
Andy Piper
479157a741 AP_HAL_ChibiOS: add FlywooF745Nano board definition 2021-08-28 14:41:27 +09:00
Andrew Tridgell
84d9ff108e HAL_ChibiOS: switch to minimum scheduling delta of 10us
this avoids an issue with the ChibiOS 20.3 virtual timer
implementation that can result in a scheduling slip equal to the
system timer period.

Andy has been suggesting this change for a while. I resisted it as I
thought it would impact on soft-serial parsing, but it turns out it
doesn't.

Fixes issue #18383
2021-08-28 14:41:27 +09:00
Andy Piper
3c8dbf8e30 AP_HAL_ChibiOS: use hardware serial inversion pins on F4 boards that support it
change mamba F405 to active high as per betaflight
2021-08-28 14:41:27 +09:00
Randy Mackay
945600a49e AP_HAL_ChibiOS: swap Pixhawk4 blue and red LEDs 2021-08-28 14:41:27 +09:00
Andy Piper
87018b859e AP_HAL_ChibiOS: output initializing from PWM banner when not available 2021-08-14 10:44:08 +09:00
Leonard Hall
988f2dbb7e AP_Hal_ChibiOS: Skyviper Parameters PSC_VELXY_FLTE 2021-08-14 10:44:08 +09:00
Andy Piper
796fdab984 AP_HAL_ChibiOS: probe for compasses on FlywooF745 2021-08-14 10:44:08 +09:00
Andy Piper
3efb3336a5 AP_HAL_ChibiOS: only control widest pulse for dshot and oneshot 2021-07-22 19:07:36 +09:00
Andy Piper
e0bd344582 AP_HAL_ChibiOS: re-enable LEDs on MatekF405-bdshot 2021-07-22 19:07:36 +09:00
Andrew Tridgell
7e069b40eb HAL_ChibiOS: raise DMA contention threshold for H7 2021-07-22 19:07:36 +09:00
Andrew Tridgell
126d5a8d23 HAL_ChibiOS: implement NOFIFO option for uarts 2021-07-22 19:07:36 +09:00
Andrew Tridgell
0a04bb4b05 HAL_ChibiOS: run storage writes at 1kHz not 100Hz
The 100Hz update rate means there is a significant chance of an arming
failure after mission upload if you try to arm shortly after the
update.

Each mission item is 15 bytes, so with a 1200 item mission we need to
write 18000 bytes to storage. At 100Hz, with 8 bytes per storage line,
that takes over 22 seconds.
2021-07-22 19:07:36 +09:00
Andrew Tridgell
63de37341c HAL_ChibiOS: define HAL_HAVE_HARDWARE_DOUBLE on F765, F777 and H7 2021-07-22 19:07:36 +09:00
Andrew Tridgell
3239caf852 HAL_ChibiOS: use SRAM1 as first ram segment on H7
this is needed to give the linker more than 128k for static variables
with double precision maths.
2021-07-22 19:07:36 +09:00
Andrew Tridgell
7cd3c29ab2 HAL_ChibiOS: always send zero DShot when disarmed
this prevents a misconfigured system (for example SERVOn_REVERSED=1)
from running a motor while disarmed.

See https://discuss.ardupilot.org/t/plane-4-1-0-beta/72434/34?u=tridge
2021-07-22 19:07:36 +09:00
Siddharth Purohit
882b01bae3 AP_HAL_ChibiOS: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS 2021-06-24 09:02:42 +10:00
bugobliterator
7e8f11b749 AP_HAL_ChibiOS: allow embedded bootloader to be excluded
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2021-06-24 08:36:30 +10:00
Andy Piper
9e99f724e5 AP_HAL_ChibiOS: add 1Hz update_channel_masks()
Send dshot commands in update function
2021-06-22 09:55:27 +10:00
Andrew Tridgell
ed93caadd5 HAL_ChibiOS: fixed build of VRUBrain-v51
overflowing flash
2021-06-21 16:48:10 -07:00
Andy Piper
3386cbb0df AP_HAL_ChibiOS: add OREO support to CubeSolo.
add back RunCam and Spektrum support to MatekF405-Wing
remove gripper support from MatekF405-Wing
2021-06-16 20:25:58 +10:00
Samuel Tabor
3fc58de7ce AP_HAL_ChibiOS: Restore soaring on F405-Wing board. 2021-06-16 09:15:03 +10:00
Andy Piper
d36b4bfa3f AP_HAL_ChibiOS: make sure all MatekF405 bi-dir outputs get a DMA channel
only allow (b)dshot on M1-4 to get full DMA on USART3 and UART4
2021-06-15 09:49:02 +10:00
Peter Barker
f780a5c358 AP_HAL_ChibiOS: fix infinite loop for large SPI transfers
len is 32 bits; i may integer-wrap back to zero at 65535+1
2021-06-14 09:13:49 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
d363cbadcc AP_HAL_ChibiOS: Disable un-needed hardware drivers in SkyViper builds
these boards have integrated ESCs with no telemetry
2021-06-09 21:42:51 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
8593672f4c AP_HAL_ChibiOS: fix compilation when HAL_WITH_ESC_TELEM == 0 2021-06-09 21:42:51 +10:00
Tom Pittenger
7a004656a2 AP_HAL_ChibiOS: use HAL_ENABLE_LIBUAVCAN_DRIVERS instead of HAL_MAX_CAN_PROTOCOL_DRIVERS 2021-06-09 18:36:18 +10:00
Tom Pittenger
1feec460c4 AP_HAL_ChibiOS: enable BattMon MPPT PacketDigital to CubeOrange-periph 2021-06-09 18:36:18 +10:00
Tom Pittenger
f764bd6547 AP_HAL_ChibiOS: disable EventSource only when CH_CFG_USE_EVENTS is false
(cherry picked from commit 6e7542a70ca2343ab8d18470deaf5fc2d27390af) from bugobliterator
2021-06-09 18:36:18 +10:00
Andrew Tridgell
f09abc705b HAL_ChibiOS: bring us to 18k free for MatekF405-Wing plane build 2021-06-09 18:07:00 +10:00
Peter Barker
09e82e52e1 AP_HAL_ChibiOS: disable AP_EFI on MatekF405-Wing and omnibusf4pro 2021-06-08 14:08:34 +10:00