Commit Graph

3063 Commits

Author SHA1 Message Date
Andy Piper a31c5ea943 AP_HAL_ChibiOS: fix TMotor H743 with BMI270 2024-08-21 20:39:44 +09:00
Andy Piper df283a1739 AP_HAL_ChibiOS: add servo outputs as motors to FoxeerF405v2 2024-08-21 20:39:44 +09:00
cuav-chen2 123eeae2fb HAL_ChibiOS: Added support for CUAV-7-Nano flight controller 2024-08-21 20:39:44 +09:00
Vincent Poon b969123b5c Update Pixhawk6C hwdef.dat
Fix https://github.com/ArduPilot/ardupilot/issues/25840

The overcurrent detection of the HIPOWER current limiting chip is connected to PC11 on the Pixhawk 6C.
2024-08-21 20:39:44 +09:00
Leonardo Garcia 33581552f4 AP_HAL_ChibiOS: Support for 3DR Control Zero H7 OEM rev G
Co-authored-by: Alexis Guijarro <totonzx@gmail.com>
Co-authored-by: Andy Piper <github@andypiper.com>
2024-08-21 20:39:44 +09:00
bugobliterator 9be6673f72 AP_HAL_ChibiOS: add passthrough from secondary through primary while in bootloader 2024-07-29 14:59:23 +09:00
bugobliterator c4c0026497 AP_HAL_ChibiOS:hwdef/common: disable second core on dual core MCUs 2024-07-29 14:59:23 +09:00
Henry Wurzburg ae2c3956dc hwdef: add ASP5033 airspeed in minimal builds 2024-07-03 10:31:14 +09:00
Wu ddd2f2d732 AP_HAL_ChibiOS: added RadiolinkPIX6 support 2024-07-03 10:31:14 +09:00
Iampete1 75cff5a1b8 AP_HAL_ChibiOS: update relay parameter names 2024-07-03 10:31:14 +09:00
Thomas Watson cb63605249 hwdef: CubeRedPrimary: ICM45686 as ICM20649 alternative
Empirically what is present on Cube Reds built on/after 2024-04-14.
2024-07-03 10:31:14 +09:00
Daniel Li 7ca52766ce hwdef: Fix Aocoda-RC H743Dual motor 5-8 mis-labeled issue 2024-07-03 10:31:13 +09:00
Andy Piper 743756d9fa AP_HAL_ChibiOS: reset pwm peripheral on F1 when deallocating IC DMA 2024-07-03 10:31:13 +09:00
Andy Piper 1aa79ba489 AP_HAL_ChibiOS: BLITZ Wing H743 2024-05-16 10:59:52 +10:00
Andy Piper 10c189d28d AP_HAL_ChibiOS: add highres sampling to Pixhawk6X 2024-05-16 10:59:52 +10:00
Andy Piper a707fde4bf AP_HAL_ChibiOS: iFlight Blitz H7 Pro 2024-05-16 10:59:52 +10:00
Andy Piper d27e724df8 AP_HAL_ChibiOS: add SDMODELV2 2024-05-16 10:59:52 +10:00
Andy Piper 7781cbb0a3 AP_HAL_ChibiOS: correct GPS output on MambaH743v4 2024-05-16 10:59:51 +10:00
Randy Mackay ad0c6a8a30 AP_HAL_ChibiOS: correct CUAV-Nora periph power comment 2024-04-30 20:29:20 +09:00
Randy Mackay 3b3eca6dda AP_HAL_ChibiOS: correct CUAV-X7 periph power comment 2024-04-30 20:29:20 +09:00
Randy Mackay ef5d3f1ba7 AP_HAL_ChibiOS: Durandal peripheral power on at startup 2024-04-30 20:29:20 +09:00
Randy Mackay 86adc78fdc AP_HAL_ChibiOS: Pixhawk5X peripheral power on at startup 2024-04-30 20:29:20 +09:00
Randy Mackay 2c870b0440 AP_HAL_ChibiOS: Pixhawk6C peripheral power on at startup 2024-04-30 20:29:20 +09:00
Randy Mackay f5cd5e4c39 AP_HAL_ChibiOS: Pixhawk6X peripheral power on at startup 2024-04-30 20:29:20 +09:00
Andy Piper a7d93582bc AP_HAL_ChibiOS: iFlight BLITZ Mini F745 2024-04-30 20:29:20 +09:00
Andy Piper d1a41dd87b AP_HAL_ChibiOS: iFlight Blitz F745 2024-04-30 20:29:20 +09:00
Andy Piper e3b8a7b4bd AP_HAL_ChibiOS: fixups for FoxeerF405v2 2024-04-30 20:29:20 +09:00
Andrew Tridgell 0c4a1f86d7 hwdef: the RM3100 should run at max 1MHz on SPI bus 2024-04-30 20:29:20 +09:00
Andy Piper 47eb646de4 AP_HAL_ChibiOS: allow H7RF to build 2024-04-30 20:29:20 +09:00
Andy Piper 2cd660408a AP_HAL_ChibiOS: fixup FoxeerF405v2 build 2024-04-30 20:29:20 +09:00
Andy Piper dbfcd6c678 AP_HAL_ChibiOS: FoxeerF405v2 2024-04-30 20:29:20 +09:00
Tim Tuxworth b9cd488cd8 Chibios: CubeRed - change NET_ENABLED to NET_ENABLE 2024-03-22 15:36:19 +09:00
Andrew Tridgell 93a06789b9 HAL_ChibioOS: fixed FDCAN -> CAN labels
we use CAN1_RX not FDCAN1_RX in our MCU files
2024-03-22 15:36:19 +09:00
Andrew Tridgell 9a19cf81e3 HAL_ChibiOS: fixed a cache corruption issue on H7
This fixes a bug introduced in this PR:

https://github.com/ArduPilot/ardupilot/pull/25900

the bug is that when we don't go via the bouncebuffer on H7 we were
also skipping the cache invalidate/flush ops. This caused data
corruption for filesystem operations, particularly noticible as lua
scripts failing to load with parse errors or log corruption
2024-03-22 15:36:19 +09:00
Minderring 6d7c267955 hwdef: added MicoAir405v2 2024-03-22 15:36:19 +09:00
Andy Piper 355e834acd AP_HAL_ChibiOS: Orqa F405 Pro 2024-03-22 15:36:19 +09:00
Andy Piper 0426686c92 AP_HAL_ChibiOS: always normalize ESC channel when using iomcu 2024-03-14 09:33:55 +09:00
Andy Piper a1b9897b37 AP_HAL_ChibiOS: use standard FPV config for SpeedyBeeF405WING 2024-03-14 09:33:55 +09:00
Randy Mackay 2680b1188d AP_HAL_ChibiOS: CubeRedSecondary IMU orientation fix
Also remove duplicate RC_IN serial protocol
2024-03-14 09:33:55 +09:00
Andrew Tridgell 884c3eeb34 AP_HAL_ChibiOS: remove iomcu dshot from Pixhawk1-1M and add to Pixhawk1-bdshot
add support for removing ROMFS from hwdef
2024-03-14 09:33:55 +09:00
Andrew Tridgell dba0497541 hwdef: fixed Pixhawk1-1M build 2024-03-14 09:33:55 +09:00
subashchandar 809a76d419 AP_HAL_ChibiOS: hwdef: Add new hardware pixflamingo f7 2024-03-14 09:33:55 +09:00
Randy Mackay 7df12b4d22 AP_HAL_ChibiOS: AP_Periph does not use AP_VisualOdom 2024-03-14 09:33:55 +09:00
Andy Piper 2a61cc73fe AP_HAL_ChibiOS: BlitzF745AIO update to ICM-42688
enable OSD
use minimal FPV config
enable compass probing
pull uart pins high in bootloader for ELRS
2024-03-14 09:33:55 +09:00
Andrew Tridgell e36a6226a8 HAL_ChibiOS: fixed CANFD timings (again!)
the timing table was not correct, thanks to APD for pointing this out.

This is recalculated from
https://www.kvaser.com/support/calculators/can-fd-bit-timing-calculator,
with transmitter timing delay compensation added and tested with Salae
captures to ensure we are getting the right bit rates
2024-02-14 09:21:15 +09:00
yjuav 9bf73db55e hwdef: add YJUAV_A6Ultra board support 2024-02-14 09:21:15 +09:00
David O'Connor ef10be5918 hwdef: add AnyLeaf H7 board 2024-02-14 09:21:15 +09:00
Andrew Tridgell 6e3369611e HAL_ChibiOS: enable clock management on G4
this allows for a different clock tree in the main fw from the
bootloader
2024-01-25 11:44:52 +11:00
Andrew Tridgell 06a8aef998 HAL_ChibiOS: switched G4 FDCAN clock to 80MHz
this requires main CPU clock at 160 MHz instead of 168 MHz
2024-01-25 11:44:44 +11:00
Andrew Tridgell 2d965684f6 HAL_ChibiOS: fixed CANFD timings
our CANFD timings were resulting in a lot of busoff errors. Here is an
example of master at 1Mbit/5MBit:

Getting @SYS/can0_stats.txt as -
------- Clock Config -------
CAN_CLK_FREQ:   80MHz
Std Timings: bitrate=1000000 presc=7
sjw=0 bs1=7 bs2=0 sample_point=90.00000%
FD Timings:  bitrate=5000000 presc=1
sjw=0 bs1=5 bs2=0 sample_point=90.00000%
------- CAN Interface Stats -------
tx_requests:    2689
tx_rejected:    0
tx_overflow:    443
tx_success:     7
tx_timedout:    2232
tx_abort:       0
rx_received:    18470
rx_overflow:    0
rx_errors:      0
num_busoff_err: 34439
num_events:     18477
ECR:            F8
fdf_rx:         18467
fdf_tx_req:     2182
fdf_tx:         0

here is an example with the new timings:

------- Clock Config -------
CAN_CLK_FREQ:   80MHz
Std Timings: bitrate=1000000 presc=8
sjw=1 bs1=8 bs2=1 sample_point=90.00000%
FD Timings:  bitrate=8000000 presc=2
sjw=3 bs1=8 bs2=3 sample_point=80.00000%
------- CAN Interface Stats -------
tx_requests:    3023
tx_rejected:    0
tx_overflow:    0
tx_success:     3023
tx_timedout:    0
tx_abort:       0
rx_received:    27865
rx_overflow:    0
rx_errors:      0
num_busoff_err: 0
num_events:     30888
ECR:            0
fdf_rx:         27862
fdf_tx_req:     3016
fdf_tx:         3016

I am testing between a CubeOrange and a Pixhawk6X. I tested 1, 2, 4, 5
and 8 MBit (which are the only valid FD bitrates in our parameters)

Many thanks to Kai from Salient Motion for finding this issue and
providing the corrected timing table
2024-01-25 11:44:32 +11:00