Commit Graph

3062 Commits

Author SHA1 Message Date
Andy Piper
df75cd541a AP_HAL_ChibiOS: add servo outputs as motors to FoxeerF405v2 2024-08-21 20:41:50 +09:00
cuav-chen2
59e85ac306 HAL_ChibiOS: Added support for CUAV-7-Nano flight controller 2024-08-21 20:41:50 +09:00
Vincent Poon
7a51a18e15 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:41:50 +09:00
Leonardo Garcia
417f4d864e 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:41:50 +09:00
bugobliterator
509eb0ebc1 AP_HAL_ChibiOS: add passthrough from secondary through primary while in bootloader 2024-07-29 15:00:55 +09:00
bugobliterator
f542fb8510 AP_HAL_ChibiOS:hwdef/common: disable second core on dual core MCUs 2024-07-29 15:00:55 +09:00
Henry Wurzburg
9466753fb2 hwdef: add ASP5033 airspeed in minimal builds 2024-07-03 10:32:15 +09:00
Wu
a5b17bc43e AP_HAL_ChibiOS: added RadiolinkPIX6 support 2024-07-03 10:32:15 +09:00
Iampete1
8f6d822e7e AP_HAL_ChibiOS: update relay parameter names 2024-07-03 10:32:15 +09:00
Thomas Watson
e42244d3c0 hwdef: CubeRedPrimary: ICM45686 as ICM20649 alternative
Empirically what is present on Cube Reds built on/after 2024-04-14.
2024-07-03 10:32:15 +09:00
Daniel Li
8193cfc2e9 hwdef: Fix Aocoda-RC H743Dual motor 5-8 mis-labeled issue 2024-07-03 10:32:15 +09:00
Andy Piper
0ea933e7f8 AP_HAL_ChibiOS: reset pwm peripheral on F1 when deallocating IC DMA 2024-07-03 10:32:15 +09:00
Andy Piper
9c26a2296d AP_HAL_ChibiOS: BLITZ Wing H743 2024-05-16 15:43:32 +10:00
Andy Piper
1bb4591153 AP_HAL_ChibiOS: add highres sampling to Pixhawk6X 2024-05-16 15:43:32 +10:00
Andy Piper
586579bd1c AP_HAL_ChibiOS: iFlight Blitz H7 Pro 2024-05-16 15:43:32 +10:00
Andy Piper
d493642f83 AP_HAL_ChibiOS: add SDMODELV2 2024-05-16 15:43:32 +10:00
Andy Piper
cb9b4021e3 AP_HAL_ChibiOS: correct GPS output on MambaH743v4 2024-05-16 15:43:32 +10:00
Randy Mackay
ab4ebc2033 AP_HAL_ChibiOS: correct CUAV-Nora periph power comment 2024-05-01 08:12:55 +09:00
Randy Mackay
59fc343ff8 AP_HAL_ChibiOS: correct CUAV-X7 periph power comment 2024-05-01 08:12:55 +09:00
Randy Mackay
2695af6be4 AP_HAL_ChibiOS: Durandal peripheral power on at startup 2024-05-01 08:12:55 +09:00
Randy Mackay
fb40b3e6fc AP_HAL_ChibiOS: Pixhawk5X peripheral power on at startup 2024-05-01 08:12:55 +09:00
Randy Mackay
d72bf5575f AP_HAL_ChibiOS: Pixhawk6C peripheral power on at startup 2024-05-01 08:12:55 +09:00
Randy Mackay
79f47a5b97 AP_HAL_ChibiOS: Pixhawk6X peripheral power on at startup 2024-05-01 08:12:55 +09:00
Andy Piper
d549a93d81 AP_HAL_ChibiOS: iFlight BLITZ Mini F745 2024-05-01 08:12:55 +09:00
Andy Piper
93b5a70c9e AP_HAL_ChibiOS: iFlight Blitz F745 2024-05-01 08:12:55 +09:00
Andy Piper
19d8843316 AP_HAL_ChibiOS: fixups for FoxeerF405v2 2024-05-01 08:12:55 +09:00
Andrew Tridgell
2cb83afdf9 hwdef: the RM3100 should run at max 1MHz on SPI bus 2024-05-01 08:12:55 +09:00
Andy Piper
96734a95ee AP_HAL_ChibiOS: allow H7RF to build 2024-05-01 08:12:55 +09:00
Andy Piper
88b622373a AP_HAL_ChibiOS: fixup FoxeerF405v2 build 2024-05-01 08:12:55 +09:00
Andy Piper
6086d85676 AP_HAL_ChibiOS: FoxeerF405v2 2024-05-01 08:12:54 +09:00
Tim Tuxworth
5178aa82a0 Chibios: CubeRed - change NET_ENABLED to NET_ENABLE 2024-03-22 17:49:41 +11:00
Andrew Tridgell
8a8f7a885d HAL_ChibioOS: fixed FDCAN -> CAN labels
we use CAN1_RX not FDCAN1_RX in our MCU files
2024-03-22 17:49:41 +11:00
Andrew Tridgell
9a709be045 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 17:49:41 +11:00
Minderring
4d1dd060f5 hwdef: added MicoAir405v2 2024-03-22 17:49:41 +11:00
Andy Piper
663fdd1ba3 AP_HAL_ChibiOS: Orqa F405 Pro 2024-03-22 17:49:40 +11:00
Andy Piper
8a392be078 AP_HAL_ChibiOS: always normalize ESC channel when using iomcu 2024-03-14 11:42:44 +11:00
Andy Piper
e0b4143cad AP_HAL_ChibiOS: use standard FPV config for SpeedyBeeF405WING 2024-03-14 11:42:44 +11:00
Randy Mackay
f6de0f19bb AP_HAL_ChibiOS: CubeRedSecondary IMU orientation fix
Also remove duplicate RC_IN serial protocol
2024-03-14 11:42:44 +11:00
Andrew Tridgell
8cd8d7b6e5 AP_HAL_ChibiOS: remove iomcu dshot from Pixhawk1-1M and add to Pixhawk1-bdshot
add support for removing ROMFS from hwdef
2024-03-14 11:42:44 +11:00
Andrew Tridgell
5deb2b07f4 hwdef: fixed Pixhawk1-1M build 2024-03-14 11:42:44 +11:00
subashchandar
5fa8bfb187 AP_HAL_ChibiOS: hwdef: Add new hardware pixflamingo f7 2024-03-14 11:42:44 +11:00
Randy Mackay
6ae7b3385f AP_HAL_ChibiOS: AP_Periph does not use AP_VisualOdom 2024-03-14 11:42:44 +11:00
Andy Piper
5a6a19560c 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 11:42:43 +11:00
Andrew Tridgell
3047c1ed92 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-03-14 11:42:42 +11:00
yjuav
7f98c7f737 hwdef: add YJUAV_A6Ultra board support 2024-03-14 11:42:42 +11:00
David O'Connor
8621495480 hwdef: add AnyLeaf H7 board 2024-03-14 11:42:42 +11: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
Hayden Donald
a81f2785aa AP_HAL_ChibiOS: Use correct pin config for ADC2 and ADC3 2024-01-24 08:03:24 +11:00