Andrew Tridgell
52169f25da
HAL_ChibiOS: replace volatile bools with mutexes
...
this replaces the two booleans used to mediate TX and RX buffer
protection with mutexes.
The booleans were a hangover from the very early HAL_ChibiOS code, and
can lead to a deadlock. The sequence is as follows:
- a very high CAN bus bandwidth usage, triggered by MissionPlanner
requesting CAN_FORWARD on a CAN serial port. That causes a
"infinite" number of CAN_FRAME messages which saturates the bus,
and leads to the DroneCAN thread looping with no pause
- a serial port configured as GPS type AUTO, auto-probing for a GPS
that isn't there. This calls begin() periodically
- the UART TX thread assocated with that UART not making progress as
the TX thread priority is below the DroneCAN thread priority
- this causes the begin() in main thread waiting for _in_tx_timer to
loop forever, which triggers a watchdog
2024-10-01 09:54:26 +10:00
tompsontan
84fbaa3abc
AP_HAL_ChibiOS: add board X-MAV-AP-H743v2
...
Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>
2024-10-01 09:39:55 +10:00
Peter Barker
b234729398
AP_HAL_ChibiOS: CubeRedPrimary: probe external compasses
2024-10-01 09:22:42 +10:00
Nick Exton
919a711f17
AP_HAL_ChibiOS: Disable VIDEO_STREAM_INFORMATION in minimize_common.inc
2024-10-01 08:18:54 +09:00
Nick Exton
fed948c98d
AP_HAL_ChibiOS: Disable CAMERA_INFO_FROM_SCRIPT in minimize_common.inc
2024-10-01 08:18:54 +09:00
Tdogb
f282c8db65
hwdef: add DPS280 to baros present on FlyWooF745
2024-09-30 19:58:04 +10:00
Andrew Tridgell
070363e453
HAL_ChibiOS: limit RX timeout to 100ms
...
this prevents a very long timeout in begin(), replacement with a mutex
will happen in a separate PR
2024-09-27 11:06:20 +10:00
Robert Taylor
d82e82635f
hwdef: switch CAN port definiton on Nucleo-496 hwdef
...
The CAN port as it was is a valid CAN port for the nucleo, but on the development board the CAN silkscreen is actually on PD0 and PD1. This change makes it easier to get the example running on the Nucleo
2024-09-26 08:31:50 +10:00
Peter Barker
14332fad52
hwdef: -Os on MFT-SEMA-100 to avoid flash overflow
2024-09-25 23:44:05 +10:00
Peter Barker
c9de940fc8
hwdef: JHEMCU-GSF405A becomes minimize-fpv-osd
2024-09-25 17:12:44 +10:00
Peter Barker
8b9154d115
AP_HAL_ChibiOS: re-order initialiser lines so -Werror=reorder will work
2024-09-24 22:50:28 +10:00
Thomas Watson
5f4a6dc2fb
AP_HAL_ChibiOS: remove dependency on tmpnam
...
tmpnam is never linked and not necessary, and naming it/redefining it
introduces problems on platforms that do have a definition.
2024-09-24 22:49:18 +10:00
caijie
42c82f6c5d
AP_HAL_ChibiOS: add VUAV-V7pro
2024-09-24 10:07:39 +10:00
bugobliterator
3d47f01dd4
AP_HAL_ChibiOS: enable TESTs on CubePilot-PPPGW
2024-09-19 11:44:22 +10:00
Henry Wurzburg
8c3621d021
hwdef: add bdshot to SpeedyBeeF405Wing
...
Co-authored-by: setup <alxdr64m@gmail.com>
2024-09-18 17:51:26 +10:00
Ruffalo Lavoisier
e3f76591fc
AP_HAL_ChibiOS: check nullptr 'name' variable
...
- Check nullptr before using the 'name' variable assigned from malloc()
2024-09-17 22:10:26 +10:00
Peter Barker
cd9e7e095a
hwdef: f103-GPS: explicltly nominiate compass backends supported
...
this target is overflowing as someone is trying to add a new compass..
2024-09-17 10:31:27 +10:00
Andrew Tridgell
9cb3354ba0
hwdef: default CAN MCAST enabled for PPPGW builds
2024-09-17 10:02:29 +10:00
Andrew Tridgell
f065548866
hwdef: enable CAN multicast support in PPP gateways
2024-09-17 10:02:29 +10:00
Andrew Tridgell
05d43fd00b
HAL_ChibiOS: allow for MCAST UDP with no CAN link
...
this allows the CAN interface to operate without a CAN cable, allowing
for bridging of MCAST UDP CAN
2024-09-17 10:02:29 +10:00
muramura
70046e0d58
AP_HAL_ChibiOS: Change the magic number to a defined value
2024-09-12 14:23:10 +10:00
Peter Barker
66a2788663
hwdef: RadioLinkPIX6 uses SPL06 driver
2024-09-11 18:27:47 +10:00
Thomas Watson
854b769cfe
hwdef: remove non-ublox GPSes from MatekL431-Periph
...
Saves enough flash to get it building again (11K now free). These
backends are default for other boards and so are built in CI.
2024-09-10 12:30:23 +10:00
Eric
a1a4c63881
hwdef: add mpu6000 to support ReaperF745 V4 FC
2024-09-06 21:19:32 +10:00
Peter Barker
784760342d
Copter: remove ENABLE/ENABLED/DISABLE/DISABLED defines
2024-09-06 11:53:09 +10:00
jamming
4d3e97533d
AP_HAL_ChibiOS: Add a new target Holybro DroneCAN-pmu
2024-09-06 08:50:20 +10:00
Peter Barker
bfcac18eb2
hwdef: GEPRCF745BTHD: rely on custom builds for external baros
...
this is overflowing - it has an onboard baro, that will have to do...
2024-09-06 08:49:57 +10:00
Peter Barker
61b1a2d525
hwdef: remove SMBus battery support from all minimize-fpv boards
...
I doubt there's a single one of these boards on the planet using stock firmware and smbus batteries. If they exist, the custom build server can re-add this
2024-09-06 08:49:28 +10:00
Jacob Dahl
d96926050b
hwdef: ARKV6x: fix RC input
2024-09-06 08:45:57 +10:00
khimaros
2e1af82044
AP_HAL_Chibios: default to MavLinkV1 on CubeSolo
...
see also https://github.com/ArduPilot/ardupilot/issues/22155
2024-09-04 19:13:05 +10:00
romi2002
e6d35b08cb
hwdef: enable flash-from-SD on Pixhawk6C
...
Enabled flash-from-SD support on Pixhawk6C bootloader based off Pixhawk6X hwdef (3b230c4
).
2024-09-04 19:08:46 +10:00
Andy Piper
7fc61090f2
AP_HAL_ChibiOS: add support for disabled mask on iomcu
2024-09-04 18:34:10 +10:00
Andy Piper
e5d26a579d
AP_HAL_ChibiOS: correctly check for channel enablement on iomcu
2024-09-04 18:34:10 +10:00
Andy Piper
48624f189e
AP_HAL_ChibiOS: dshot commands for reverse/3D should be sent to IOMCU
...
normalize servo/FMU channels for dshot commands and 3D mask
2024-09-04 18:34:10 +10:00
Andy Piper
fc51829b63
AP_HAL_ChibiOS: add iomcu support for reversible mask
...
check armed state on iomcu before sending dshot packets
2024-09-04 18:34:10 +10:00
Peter Barker
40e367e14f
AP_HAL_ChibiOS: avoid use of global signed_fw in ChibiOSHWdef object
2024-09-04 09:52:55 +10:00
Peter Barker
53b726271f
AP_HAL_ChibiOS: avoid use of global args in ChibiOSHWdef object
2024-09-04 09:52:55 +10:00
Hubert
b971046a07
hwdef: Update hwdef for MicoAir405v2 and MicoAir405mini
...
Update MicoAir405v2 hwdef.dat: enable OPTICALFLOW
Update MicoAir405v2 defaults.parm: enable OSD_TYPE2 and adjust LOG_FILE_BUFSIZE from 16 to 8
Update MicoAir405Mini defaults.parm: adjust LOG_FILE_BUFSIZE from 16 to 8
2024-09-04 09:52:30 +10:00
Andrew Tridgell
34c1c70cc4
hwdef: rename BotBloxSwitch to BotBloxDroneNet
2024-09-04 09:03:56 +10:00
Aaron Elijah
b63865cdc5
hwdef: force 100MBit fullduplex for BotBloxSwitch
...
auto-negotiation doesn't work
also disable TX/RX swap as not needed on final board
2024-09-03 10:41:58 +10:00
cuav-chen2
18cb1f3899
HAL_ChibiOS: change battery scale for CUAV-7-Nano flight controller
2024-09-02 12:23:08 +10:00
bugobliterator
957e92aca1
AP_HAL_ChibiOS: use CubePilot-CANMod's Serial Order
2024-08-28 18:20:29 +10:00
Wu
a33a0d1579
HAL_ChibiOS: fixed the imu orientation of RadiolinkPIX6
2024-08-27 10:26:50 +10:00
Wu
52c94e2a5b
AP_HAL_ChibiOS: add SPA06 baro for RadiolinkPIX6
2024-08-23 18:38:27 +10:00
jamming
988d50fd9b
hwdef: Add IST8310 and RM3100 Compass support for HolybroG4_GPS
2024-08-22 08:57:18 +10:00
jamming
a3c930be7b
AP_HAL_ChibiOS: Add a new target HolybroG4 DroneCAN Airspeed
2024-08-22 08:56:22 +10:00
Andy Piper
9c588d6ae2
AP_HAL_ChibiOS: do not include NeoPixel in minimum pulse separation
2024-08-21 17:24:01 +10:00
Andy Piper
08bf7c6163
AP_HAL_ChibiOS: Flywoo H743 Pro
2024-08-13 10:20:15 +10:00
mikefenghao
ff30224079
AP_HAL_ChibiOS:added new hardware PixPilot-V6PRO
2024-08-10 11:06:33 +10:00
Peter Barker
23b7e0f64d
AP_HAL_ChibiOS: use GCS_SEND_TEXT rather than gcs().send_text
...
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00