Commit Graph

3058 Commits

Author SHA1 Message Date
bugobliterator b5bc54312f AP_HAL_ChibiOS: add passthrough from secondary through primary while in bootloader 2024-07-29 15:01:35 +09:00
bugobliterator d4df6e0fa8 AP_HAL_ChibiOS:hwdef/common: disable second core on dual core MCUs 2024-07-29 15:01:35 +09:00
Henry Wurzburg 745e461992 hwdef: add ASP5033 airspeed in minimal builds 2024-07-03 10:32:59 +09:00
Wu c139233feb AP_HAL_ChibiOS: added RadiolinkPIX6 support 2024-07-03 10:32:59 +09:00
Iampete1 18d13986ff AP_HAL_ChibiOS: update relay parameter names 2024-07-03 10:32:59 +09:00
Thomas Watson 2bbdd2e227 hwdef: CubeRedPrimary: ICM45686 as ICM20649 alternative
Empirically what is present on Cube Reds built on/after 2024-04-14.
2024-07-03 10:32:59 +09:00
Daniel Li 896acaff0b hwdef: Fix Aocoda-RC H743Dual motor 5-8 mis-labeled issue 2024-07-03 10:32:58 +09:00
Andy Piper 44df9b94ed AP_HAL_ChibiOS: reset pwm peripheral on F1 when deallocating IC DMA 2024-07-03 10:32:58 +09:00
Andy Piper ad871c8f3e AP_HAL_ChibiOS: BLITZ Wing H743 2024-05-16 10:58:26 +10:00
Andy Piper 828a16041c AP_HAL_ChibiOS: add highres sampling to Pixhawk6X 2024-05-16 10:58:26 +10:00
Andy Piper 8310f91e2e AP_HAL_ChibiOS: iFlight Blitz H7 Pro 2024-05-16 10:58:26 +10:00
Andy Piper 5651585694 AP_HAL_ChibiOS: add SDMODELV2 2024-05-16 10:58:26 +10:00
Andy Piper 3951d23f3a AP_HAL_ChibiOS: correct GPS output on MambaH743v4 2024-05-16 10:58:26 +10:00
Randy Mackay 8752a468b8 AP_HAL_ChibiOS: correct CUAV-Nora periph power comment 2024-05-01 08:07:42 +10:00
Randy Mackay b4e0f3c124 AP_HAL_ChibiOS: correct CUAV-X7 periph power comment 2024-05-01 08:07:42 +10:00
Randy Mackay edad477e53 AP_HAL_ChibiOS: Durandal peripheral power on at startup 2024-05-01 08:07:42 +10:00
Randy Mackay 28ae0a280d AP_HAL_ChibiOS: Pixhawk5X peripheral power on at startup 2024-05-01 08:07:42 +10:00
Randy Mackay 112c1c0287 AP_HAL_ChibiOS: Pixhawk6C peripheral power on at startup 2024-05-01 08:07:42 +10:00
Randy Mackay caffcaad22 AP_HAL_ChibiOS: Pixhawk6X peripheral power on at startup 2024-05-01 08:07:42 +10:00
Andy Piper 94c73ec4be AP_HAL_ChibiOS: iFlight BLITZ Mini F745 2024-05-01 08:07:41 +10:00
Andy Piper 797d6e1365 AP_HAL_ChibiOS: iFlight Blitz F745 2024-05-01 08:07:41 +10:00
Andy Piper 5b3ee68d8d AP_HAL_ChibiOS: fixups for FoxeerF405v2 2024-05-01 08:07:41 +10:00
Andrew Tridgell 2783862adb hwdef: the RM3100 should run at max 1MHz on SPI bus 2024-05-01 08:07:41 +10:00
Andy Piper 34763c7748 AP_HAL_ChibiOS: allow H7RF to build 2024-05-01 08:07:41 +10:00
Andy Piper 8cb8bf3613 AP_HAL_ChibiOS: fixup FoxeerF405v2 build 2024-05-01 08:07:41 +10:00
Andy Piper 129222ba5d AP_HAL_ChibiOS: FoxeerF405v2 2024-05-01 08:07:41 +10:00
Tim Tuxworth 1ecd911843 Chibios: CubeRed - change NET_ENABLED to NET_ENABLE 2024-03-22 17:25:33 +11:00
Andrew Tridgell e503bcc23f HAL_ChibioOS: fixed FDCAN -> CAN labels
we use CAN1_RX not FDCAN1_RX in our MCU files
2024-03-22 17:25:33 +11:00
Andrew Tridgell 7b54b8a9f0 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:25:33 +11:00
Minderring 0825aef191 hwdef: added MicoAir405v2 2024-03-22 17:25:33 +11:00
Andy Piper 8e02b6e5d0 AP_HAL_ChibiOS: Orqa F405 Pro 2024-03-22 17:25:33 +11:00
Andy Piper d69e6ae997 AP_HAL_ChibiOS: always normalize ESC channel when using iomcu 2024-03-14 11:29:35 +11:00
Andy Piper df19d143f2 AP_HAL_ChibiOS: use standard FPV config for SpeedyBeeF405WING 2024-03-14 11:29:35 +11:00
Randy Mackay 0232ff446c AP_HAL_ChibiOS: CubeRedSecondary IMU orientation fix
Also remove duplicate RC_IN serial protocol
2024-03-14 11:29:35 +11:00
Andrew Tridgell 69ad34a416 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:29:35 +11:00
Andrew Tridgell dad293cad9 hwdef: fixed Pixhawk1-1M build 2024-03-14 11:29:35 +11:00
subashchandar 8842162866 AP_HAL_ChibiOS: hwdef: Add new hardware pixflamingo f7 2024-03-14 11:29:35 +11:00
Randy Mackay 8a956c4e02 AP_HAL_ChibiOS: AP_Periph does not use AP_VisualOdom 2024-03-14 11:29:35 +11:00
Andy Piper af6fcf28af 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:29:35 +11:00
Andrew Tridgell ccaeb0fd45 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 11:20:30 +11:00
yjuav bdb5352086 hwdef: add YJUAV_A6Ultra board support 2024-02-14 11:20:30 +11:00
David O'Connor d7daf8d6a5 hwdef: add AnyLeaf H7 board 2024-02-14 11:20:30 +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
MallikarjunSE 873e2eac7d AP_HAL_ChibiOS: update truenav hwdef 2024-01-24 07:58:09 +11:00
Andrew Tridgell e714f0a7a3 AP_HAL_ChibiOS: fixed name of pitch limit parameters 2024-01-23 15:00:30 +11:00
Andrew Tridgell a6bceccd82 AP_HAL_ChibiOS: convert param files LIM_ROLL_CD -> ROLL_LIMIT_DEG 2024-01-23 15:00:30 +11:00
Andrew Tridgell 862b0ed8d6 AP_HAL_ChibiOS: convert param files for pitch limits 2024-01-23 15:00:30 +11:00