Commit Graph

3346 Commits

Author SHA1 Message Date
bugobliterator
76d6a88b7b AP_HAL_ChibiOS: properly enable periph IMU on CubeOrange-periph and heavy 2024-10-23 06:46:22 +09:00
bugobliterator
830de73e58 AP_HAL_ChibiOS: add support for raw imu publishing in AP_Periph 2024-10-23 06:46:22 +09:00
bugobliterator
87ae3bccec AP_HAL_ChibiOS: change name CubePilot-CANMod and -PPPGW to CubeNode 2024-10-23 06:46:22 +09:00
ZeroOne-Aero
81768b26ff hwdef: added ZeroOneX6 picture
upload ZeroOneX6 picture
2024-10-15 15:04:49 +11:00
bugobliterator
2524583dda AP_HAL_ChibiOS: increase the number of memory regions for crashdump
also checks num region overruns for bss and heap
2024-10-14 07:21:22 +11:00
Alexis Guijarro
43b8900bec hwdef: Removed duplication for AP_STATS_ENABLED 2024-10-11 09:51:27 +11:00
Peter Barker
dec10a1a58 hwdef: GEPRCF745BTHD: remove parachute and bl-flashing support (flash overflow) 2024-10-09 08:24:12 +11:00
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
Andy Piper
189cc9d549 AP_HAL_ChibiOS: correctly uninvert RX/TX on F4 with inverter support 2024-08-07 17:34:34 +10:00
Andy Piper
c8989837bc AP_HAL_ChibiOS: KakuteF4-Wing 2024-08-07 17:34:34 +10:00
Andy Piper
30ce705765 AP_HAL_ChibiOS: fix TMotor H743 with BMI270 2024-08-07 17:30:44 +10:00
Peter Barker
516c2a853f hwdef: add named Pixhack-v3 board
allows for building this on the custom build server
2024-08-06 10:29:05 +10:00
YI-BOYANG
559a6e8f65 AP_HAL_ChibiOS: hwdef for GEPRCF745BTHD 2024-08-06 09:12:23 +10:00
Peter Barker
923b5185c6 AP_HAL_ChibiOS: rename OFFBOARD_GUIDED to AP_PLANE_OFFBOARD_GUIDED_SLEW_ENABLED
and remove comparison vs ENABLED
2024-08-05 10:20:14 +10:00
Peter Barker
ba2bec07fa AP_HAL_ChibiOS: add env option to omit hwdef.dat from romfs 2024-08-05 10:20:14 +10:00
Andrew Tridgell
9543eecf23 HAL_ChibiOS: fixed AP_FILESYSTEM_ROMFS_ENABLED for peripherals with defaults.parm
now that defaults are in ROMFS we must enable
AP_FILESYSTEM_ROMFS_ENABLED
2024-08-04 17:36:31 +10:00
EternAlmox
2ad7177a39 AP_HAL_ChibiOS: added MFT-SEMA100 2024-08-02 18:40:59 +10:00
Iampete1
21ad679b61 AP_HAL_ChibiOS: GPIO: read: support virtual read of IOMCU pins 2024-07-31 18:13:01 +10:00
Iampete1
60d579dc88 AP_HAL_ChibiOS: GPIO: Check IOMCU after local pins for speed 2024-07-31 18:13:01 +10:00
Iampete1
624ab00c3e AP_HAL_ChibiOS: RCOut banner: check for GPIO on IOMCU 2024-07-31 18:13:01 +10:00
Andy Piper
b9bde4c488 AP_HAL_ChibiOS: add servo outputs as motors to FoxeerF405v2 2024-07-31 17:27:44 +10:00
Henry Wurzburg
847b8eab25 HWDEF:fix CUAV-7-Nano default batt monitor 2024-07-31 17:13:09 +10:00
“Jane_ZeroOne”
d43dd5227a AP_HAL_ChibiOS: add ZeroOneX6 2024-07-30 20:07:31 +10:00
Peter Barker
95281e5c17 hwdef: turn monior thread back on on some boards
most of these boards probably don't need it, but to make a PR no-binary-output...
2024-07-30 10:52:36 +10:00
Peter Barker
90b2a2acaa hwdef: change HAL_NO_MONITOR_THREAD out for HAL_MONITOR_THREAD_ENABLED
... and use a default value for peripherals
2024-07-30 10:52:36 +10:00
Peter Barker
f3766b831a AP_HAL_ChibiOS: make include file mistakes nicer to interpret 2024-07-30 09:57:01 +10:00
cuav-chen2
08c8ef379b HAL_ChibiOS: Added support for CUAV-7-Nano flight controller 2024-07-29 12:25:53 +10:00
Thomas Watson
bbde876353 hwdef: remove EKF opinion from FlywooF745
No effect as lines have always been commented out, but not useful and
EKF2 is not something to encourage.

Verified no compiler output change.
2024-07-29 09:32:22 +10:00
Peter Barker
debf3cb28e hwdef: SpeedyBeeF405WING: restrict mount support to the servo gimbal 2024-07-28 12:00:02 +10:00
Peter Barker
84efdd5700 hwdef: SpeedyBeeF405WING: remove landing gear support 2024-07-28 12:00:02 +10:00
Peter Barker
78dc5a7b5d hwdef: FlyingMoonF427: remove MAX7456 2024-07-26 20:10:38 +10:00
Peter Barker
5b5dd638c1 hwdef: FlyingMoonH743: remove MAX7456 2024-07-26 20:10:38 +10:00
Andy Piper
a560f89b35 AP_HAL_ChibiOS: update logging docs for 2RAW H743 2024-07-26 10:39:38 +10:00
Andy Piper
74f72db4eb AP_HAL_ChibiOS: rename 2RAWH743 to IFLIGHT_2RAW_H7 2024-07-26 10:39:38 +10:00
Andy Piper
278595cf83 AP_HAL_ChibiOS: add support for sdcard to iFlight 2RAW 2024-07-26 10:39:38 +10:00
Andrew Tridgell
23f628f26b hwdef: fixes for BotBloxSwitch 2024-07-25 10:57:04 +10:00
bugobliterator
8a4b925c71 AP_HAL_ChibiOS: add support for PPP between CubeRed Primary and Secondary 2024-07-25 09:37:16 +10:00
bugobliterator
993d694fbb AP_HAL_ChibiOS: allow setup for low noise clock mismatch tolerant UART line 2024-07-25 09:37:16 +10:00
bugobliterator
025077b6f4 AP_HAL_ChibiOS: add support for recording UART Rx errors 2024-07-25 09:37:16 +10:00
Peter Barker
a4577685a7 AP_HAL_ChibiOS: rename LED_1 pin define to AP_NOTIFY_GPIO_LED_1_PIN 2024-07-24 09:13:50 +10:00
Bob Long
230269bed8 HAL_ChibiOS: add adjustable wdg timeout for hwdefs
This allows the watchdog timeout to be adjusted in the hwdef.dat file,
so that critical nodes like ESCs can recover more quickly.
2024-07-23 19:53:38 +10:00
Andrew Tridgell
03bdbea77c hwdef: enable relay support in MatekL431-DShot fw
the PWM expansion boards can also be used for relay control, often
combined with PWM output
2024-07-23 18:42:56 +10:00
James O'Shannessy
ce0ae33c5b AP_HAL_ChibiOS: Capture the case where the persistent parameter is the newer format INSn_ACC_ID
This fixes the handling of the newer INSn_* parameters when loading those stored in persistent memory.
2024-07-23 12:06:18 +10:00
Peter Barker
7e722eeb94 hwdef: prune out redundant lines
these have been merged with bad lines in them
2024-07-17 17:49:57 +10:00
Peter Barker
d4adb1923a hwdef: stop hwdefs defining HAL_GPIO_LED_ON to 0 2024-07-17 17:42:01 +10:00
bugobliterator
d466618b11 AP_HAL_ChibiOS: add flash ecc corrupt method 2024-07-17 17:31:15 +10:00
bugobliterator
ceea189fa3 AP_HAL_ChibiOS: enable heap allocation if flash space for bootloader is > 128K 2024-07-17 17:31:15 +10:00
Peter Barker
956ac243e1 AP_HAL_ChibiOS: adjust hwdef files for define renames 2024-07-11 09:34:00 +10:00
Andrew Tridgell
64f6abd4d4 AP_HAL_ChibiOS: switched ENABLE_HEAP to an #if 2024-07-11 09:28:17 +10:00
Andrew Tridgell
e86e012896 AP_HAL_ChibiOS: removed run_debug_shell 2024-07-11 07:42:54 +10:00
Peter Barker
7f0f851243 hwdef: remove bogus EK2_RPRIMARY from Cube defaults files
looks likely, but hasn't ever existed
2024-07-10 22:35:51 +10:00