Commit Graph

3050 Commits

Author SHA1 Message Date
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
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
Andrew Tridgell
e5199a71d6 AP_HAL_ChibiOS: convert ALT_HOLD_RTL to RTL_ALTITUDE 2024-01-23 15:00:30 +11:00
Andrew Tridgell
f935cbaead AP_HAL_ChibiOS: convert ARSPD_FBW_MIN/MAX to AIRSPEED_MIN and AIRSPEED_MAX 2024-01-23 15:00:30 +11:00
Andrew Tridgell
98d40d0e58 AP_HAL_ChibiOS: converted TRIM_ARSPD_CM to AIRSPEED_CRUISE 2024-01-23 15:00:30 +11:00
Andy Piper
6c634ebc00 AP_HAL_ChibiOS: allow dshot beeps to play on all dshot ESC types 2024-01-23 11:58:55 +11:00
Peter Barker
331110639e AP_HAL_ChibiOS: rename COMPASS_TYPEMASK to COMPASS_DISBLMSK
this is a very confusingly named parameter.  I've seen several instances of people treating this as an enable mask rather than a disable mask
2024-01-23 11:54:49 +11:00
Andrew Tridgell
140518da3c hwdef: added support for Holybro6X-45686 2024-01-23 11:49:14 +11:00
bugobliterator
9de1b6164b AP_HAL_ChibiOS: add more pins to STM32H757 ADC channel map 2024-01-22 20:35:16 +11:00
bugobliterator
b17d864d1a AP_HAL_ChibiOS: fix set_pin and _pin_scalar methods for ADC2 and ADC3 2024-01-22 20:35:16 +11:00