Commit Graph

32578 Commits

Author SHA1 Message Date
David Buzz
8da8163967 AP_HAL_ESP32: doesn't need these subsystems
ESP32: disabled can on esp32 for now

ESP32: disable airspeed sensors on esp32buzz

ESP32: disable a bunch of compasss types and subsystems so it doesn't try to probe for all

of the compases on boot, as its super slow.

turned off a bunch of Plane stuff that an esp32 user isn't likely to need
compass

scr

comp

a

c
2023-05-02 14:38:03 +10:00
David Buzz
81df897d88 AP_InternalError: imu resets aren't fatal on esp32 2023-05-02 14:38:03 +10:00
David Buzz
a896ab9e71 AP_InertialSensor: quieten imu's on esp32
less noisy

ins debug

imu
2023-05-02 14:38:03 +10:00
David Buzz
46bc6d5122 AP_HAL_ESP32: quieten imu's on esp32
less noisy

ins debug

imu
2023-05-02 14:38:03 +10:00
David Buzz
e2edfae79b AP_HAL: add a new board for tomte76
mpu9255 board, bmp280 baro, micro sd card and NEO M8 clone

a
2023-05-02 14:38:03 +10:00
David Buzz
a31f01d505 AP_HAL_ESP32: add a new board for tomte76
mpu9255 board, bmp280 baro, micro sd card and NEO M8 clone

a
2023-05-02 14:38:03 +10:00
Daniel Tombeil
8b029777e2 AP_HAL_ESP32: Adding receive_time_constraint_us() to UARTDriver to address GPS init
and health issues

- more work on receive_time_constraint_us()
2023-05-02 14:38:03 +10:00
Michael du Breuil
3de912f2b8 AP_ESC_Telem: Add support for a max rpm check on the motors running check 2023-05-02 10:23:55 +10:00
Peter Barker
f1be6df93e AP_IOMCU: honour AP_RCPROTOCOL_X_ENABLED 2023-05-02 10:19:50 +10:00
Peter Barker
18e55b9d6e AP_RCProtocol: add and use AP_RCPROTOCOL_SBUS_ENABLED 2023-05-02 10:19:50 +10:00
Henry Wurzburg
e5336a8e9e AP_HAL_ChibiOS:correct KakauteH7 IMU label 2023-05-02 10:02:35 +10:00
davidsastresas
de9024b633 AP_Mount: Siyi supports absolute zoom control
Co-authored-by: davidsastresas <davidsastresas@gmail.com>
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2023-05-02 10:00:38 +10:00
Iampete1
e613a2d812 Filter: examples: add SlewLimiter example to test functionality 2023-05-02 09:36:03 +10:00
Iampete1
ff4b63f9dc AP_Math: Chirp: add complete method to see if chirp is finished 2023-05-02 09:36:03 +10:00
Iampete1
8a4b30ec3f Filter: SlewLimiter: always caculate slew limit 2023-05-02 09:36:03 +10:00
Andrew Tridgell
4a8eda0589 AP_HAL: default CAN_Px_DRIVER to 0 on SITL
having this default to 1 slows down SITL startup for a lot of people
due to the CAN wait for sensor delays. It is easy to enable it when
CAN is needed in SITL
2023-05-01 14:10:59 +10:00
James O'Shannessy
0dedc4bf74 AP_BattMonitor: Fixes the setting of a default parameter for battery instance #2 set in hwdef 2023-04-28 16:13:33 +10:00
bugobliterator
684f96021d AP_Scripting: add tests for require 2023-04-28 12:36:08 +10:00
bugobliterator
306b14d8dc AP_Scripting: add require with sandbox inheritence 2023-04-28 12:36:08 +10:00
bugobliterator
350f718745 AP_HAL: don't include Semaphore headers while building C source 2023-04-28 12:36:08 +10:00
Andy Piper
d69b8c2693 AP_HAL_ChibiOS: fix usage of ADC2 and ADC3 in STM32H730 2023-04-28 08:31:15 +10:00
Andy Piper
e6c1897dd3 AP_HAL_ChibiOS: provide complete ADC2/ADC3 maps for STM32H750 and STM32H743
Fix dummy pin generation
2023-04-28 08:31:15 +10:00
Andy Piper
26c59349d5 AP_HAL_ChibiOS: use HAL_XIP_ENABLED to denote running in external flash 2023-04-28 08:31:15 +10:00
Andy Piper
ff1661a8de AP_HAL_ChibiOS: use STM32_FLASH_NBANKS for flash actions 2023-04-28 08:31:15 +10:00
Andy Piper
5b43926d0a AP_HAL_ChibiOS: for H730/H750 running in XIP mode do not reset clocks
create mcuconf file for STM32H730 (type2)
allow OTG2 to be used as OTG1 on MCUs that need it
remove redundant OTG enablement
2023-04-28 08:31:15 +10:00
Andy Piper
b75ff2e2ae AP_HAL_ChibiOS: allow only ADC2 to be used 2023-04-28 08:31:15 +10:00
Andy Piper
798fc05ba8 AP_HAL_ChibiOS: clean up linker map on H730 and H750
use regular ChibiOS RAM areas for RAM functions
exclude board.o from RAM functions and add some comments
use separate linker script for H750
use correct RAM area for process stack on H750/H743
update EXCLUDE items to put __early_init in flash on H730 and H750
optimize H730 ramfunc usage
2023-04-28 08:31:15 +10:00
Andy Piper
8b8f5eadd6 AP_HAL_ChibiOS: detect QSPI and OSPI separately for setting NO_RESET 2023-04-28 08:31:15 +10:00
Andy Piper
fee853dc7d AP_HAL_ChibiOS: correct OSPI clock in WSPIDevice 2023-04-28 08:31:15 +10:00
Andy Piper
7516f04106 AP_HAL_ChibiOS: create two configurable non-cacheable memory areas for DMA 2023-04-28 08:31:15 +10:00
Andy Piper
1607e66977 AP_HAL_ChibiOS: prototype CubeMX configuration for H730 2023-04-28 08:31:15 +10:00
Andy Piper
93e1859ba6 AP_HAL_ChibiOS: support is_busy() on WSPI device 2023-04-28 08:31:15 +10:00
Andy Piper
ac8a94e655 AP_HAL: support is_busy() on WSPI device 2023-04-28 08:31:15 +10:00
Andy Piper
c7c8e1a8a9 AP_FlashIface: support OctoSPI flash correctly 2023-04-28 08:31:15 +10:00
Andy Piper
19bda7818c AP_HAL: configure HAL_USE_QUADSPI and HAL_USE_OCTOSPI 2023-04-28 08:31:15 +10:00
Andy Piper
edfb133375 AP_FlashIface: add support for OCTOSPI 8-line commands 2023-04-28 08:31:15 +10:00
Andy Piper
8ef92805e1 AP_HAL_ChibiOS: support for OCTOSPI 2023-04-28 08:31:15 +10:00
Andy Piper
c4d30879d2 AP_HAL_ChibiOS: hwdef for SPRacing H7RF 2023-04-28 08:31:15 +10:00
Andy Piper
61e70a5fb1 AP_HAL_ChibiOS: add support in hwdef for OCTOSPI 2023-04-28 08:31:15 +10:00
Andy Piper
b5d7d06886 AP_HAL_Linux: QSPI -> WSPI 2023-04-28 08:31:15 +10:00
Andy Piper
11fba13dc8 AP_FlashIface: rename QSPIDevice to WSPIDevice 2023-04-28 08:31:15 +10:00
Andy Piper
c0b008902f AP_HAL_SITL: rename QSPIDevice to WSPIDevice 2023-04-28 08:31:15 +10:00
Andy Piper
eadee1ab8d AP_HAL_Empty: rename QSPIDevice to WSPIDevice 2023-04-28 08:31:15 +10:00
Andy Piper
f8dd6a1b2a AP_HAL_ChibiOS: rename QSPIDevice to WSPIDevice 2023-04-28 08:31:15 +10:00
Andy Piper
a73945c1b3 AP_HAL: rename QSPIDevice to WSPIDevice 2023-04-28 08:31:15 +10:00
Andy Piper
cc086ab8d4 AP_HAL_ChibiOS: support for STM32H730xx MCUs
correct calculation of advanced timers
add support for linker script configuration in mcu config script
use linker script configuration for H750 and H730
add single OTG_HS support on H730 via OTG2
make sure complimentary channels get advanced timers
complemntary timers do not require advanced mode
allow custom clockspeeds of 550Mhz
correct debug pins on H730
support custom clockrate of 520Mhz on H730
correct H730 USB end point pins
restructure linker script for STM32H730
allow chibios_hwdef.py to set advanced timer on L431
don't define RAMFUNC on STM32H730
clock tree for STM32H730
create non-cacheable memory area for SDMMC DMA
don't look for RAM_MAP in bootloader with external flash
2023-04-28 08:31:15 +10:00
Rhys Mainwaring
a654027a45 AP_DDS: update topic names
- Change to lower case and prefix with /ap

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-04-28 07:37:04 +10:00
pedro-fuoco
819431050a AP__DDS: update velocity topic name to follow #23603 2023-04-28 07:36:00 +10:00
pedro-fuoco
2298048079 AP_DDS: Add local velocity publisher 2023-04-28 07:36:00 +10:00
Peter Barker
c50b996015 AP_RCTelemetry: add and use AP_RCPROTOCOL_CRSF_ENABLED 2023-04-27 18:31:30 +10:00
Peter Barker
6535bfa546 AP_RCProtocol: add and use AP_RCPROTOCOL_CRSF_ENABLED 2023-04-27 18:31:30 +10:00
Peter Barker
dd549ee625 AP_RCProtocol: use defaults to turn off CRSF telem on IO firmware 2023-04-27 18:31:30 +10:00
Peter Barker
1f3aecf41b AP_HAL_ChibiOS: use defaults to turn off CRSF telem on IO firmware 2023-04-27 18:31:30 +10:00
Peter Barker
e89ccf1fa7 AP_RCProtocol: remove intermediate srxl2 callback-chain functions 2023-04-27 08:21:32 +10:00
Randy Mackay
294eb1db5b AP_Scripting: viewpro driver uses focus type and value 2023-04-26 22:55:47 +10:00
Randy Mackay
edc2ea7bf6 AP_Scripting: camera state uses focus_type and focus_value 2023-04-26 22:55:47 +10:00
Randy Mackay
d187368b33 RC_Channel: camera focus controls use set_focus 2023-04-26 22:55:47 +10:00
Randy Mackay
020a505d78 AP_Mount: set_focus replaces set_manual/auto_focus 2023-04-26 22:55:47 +10:00
Randy Mackay
2ff89498c5 AP_Camera: set_focus replaces set_manual/auto_focus 2023-04-26 22:55:47 +10:00
Peter Barker
926c7d64b1 AP_HAL_ChibiOS: add and use AP_BOOTLOADER_FLASHING_ENABLED 2023-04-26 22:55:36 +10:00
Peter Barker
b3b46f7be6 AP_RCProtocol: add add use AP_RCPROTOCOL_SRXL2_ENABLED 2023-04-26 22:54:33 +10:00
Peter Barker
feaed97601 GCS_MAVLink: deprecate handling of MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
AUTOPILOT_VERSION - the message this returns - can be requested with MAV_CMD_REQUEST_MESSAGE
2023-04-26 20:34:42 +10:00
Peter Barker
d0b96d4cd9 GCS_MAVLink: deprecate handling of AUTOPILOT_VERSION_REQUEST
This can be done equivalently with MAV_CMD_REQUEST_MESSAGE
2023-04-26 20:34:42 +10:00
bugobliterator
ac8a447bbf AP_HAL_ChibiOS: add asserts to AnalogIn 2023-04-26 18:04:00 +10:00
bugobliterator
240556acc5 AP_HAL_ChibiOS: ignore the settings for ANALOG_INPUT_NONE 2023-04-26 18:04:00 +10:00
bugobliterator
09c6500ac7 bootloaders: add CubeRed bootloaders 2023-04-26 18:04:00 +10:00
bugobliterator
91c0bda4da AP_HAL_ChibiOS: add hwdef for CubeRedSecondary 2023-04-26 18:04:00 +10:00
bugobliterator
9e6c9022a3 AP_HAL_ChibiOS: add support for forwarding USB COM2 to Secondary controller 2023-04-26 18:04:00 +10:00
bugobliterator
2ac7dcc764 AP_HAL_ChibiOS: use HAL_SERIAL0_BAUD_DEFAULT when setting up serial(0) 2023-04-26 18:04:00 +10:00
bugobliterator
cc02ad9224 AP_HAL: add HAL_FORWARD_OTG2_SERIAL define 2023-04-26 18:04:00 +10:00
bugobliterator
918a7355c5 AP_HAL_ChibiOS: add CubeRedPrimary hwdef 2023-04-26 18:04:00 +10:00
bugobliterator
9663b3d409 AP_HAL: add __EXTFLASHFUNC__ define 2023-04-26 18:04:00 +10:00
bugobliterator
0343b789e6 AP_HAL_ChibiOS: add support for mixed internal and external flash 2023-04-26 18:04:00 +10:00
bugobliterator
626fd9e77f AP_HAL_ChibiOS: add support for marking ADC pins with identifier 2023-04-26 18:04:00 +10:00
bugobliterator
726dcda24f AP_HAL_ChibiOS: add support for using ADC2 and ADC3 on H7 2023-04-26 18:04:00 +10:00
Andy Piper
6248a657c8 AP_Motors: allow use of raw voltage for battery compensation driven by MOT_OPTIONS 2023-04-26 17:04:45 +10:00
Peter Barker
b471f9bfac AP_ExternalAHRS: create and use backend defines for AP_ExternalAHRS 2023-04-26 14:09:25 +10:00
bugobliterator
0c728972ff AP_DroneCAN: move to using CanardTxTransfer for sending data 2023-04-26 14:08:45 +10:00
Ryan Friedman
47e3d1af02 AP_Airspeed: Improve ARSPD_WIND_MAX behavior by handling 3D speed
* The previous method negated earth-frame vertical velocity
* In a steep dive on a plane, the 2D ground speed assumption of speed breaks down
* Use 3D speed always
* If only a 2D fix is avialable, then vertical velocity should be 0

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-26 14:08:01 +10:00
Ryan Friedman
d6569d6f79 AP_GPS: Use SI unit abbreviation
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-26 14:08:01 +10:00
Randy Mackay
bdb3618de7 GCS_MAVLink: support requests for gimbal-manager-information 2023-04-25 15:07:35 +10:00
Randy Mackay
ddbc52d2db AP_Mount: support gimbal-manager-information requests 2023-04-25 15:07:35 +10:00
Andrew Tridgell
e4ce423c46 hwdef: DMA is off on I2C on F7 and H7 by default
no need to have it in hwdef.dat
2023-04-25 14:19:09 +10:00
Andrew Tridgell
64cd58c21a ChibiOS: disable DMA on I2C on F7 and H7 by default
this was already done on many (most?) boards, and greatly reduces DMA
sharing which improves performance of UARTs. This changes the default
to no DMA on I2C
2023-04-25 14:19:09 +10:00
pedro-fuoco
171e09d28c AP_DDS: Add local pose publisher 2023-04-25 14:18:54 +10:00
Andrew Tridgell
5024261e2e HAL_ChibiOS: fixed hwdef DMA resolver dependency on python2/python3
we need to use sorted keys in dictionaries to ensure we end up with
the same DMA mapping when using py2 and py3

fixes #15534
2023-04-25 11:30:56 +10:00
Henry Wurzburg
d6e696e085 AP_Notify: fix incorrect buzzer pin type to stop always instantiating 2023-04-25 10:29:10 +10:00
muramura
b05cffeaae AC_WPNav: Initialize near use 2023-04-25 10:13:55 +10:00
Pradeep
e7c78f8cd4 AP_EFI : Hirth type id is reserved
Hirth type-id = 8
WIP
2023-04-24 19:23:19 +10:00
Asif Khan
47ad614e8e AP_Mount: Add MNTx_SYSID_DFLT param to easily target another vehicle 2023-04-24 13:34:20 +10:00
Asif Khan
3d11ec7b5c AP_Mount: Add SysID-Target entry to MNTx_DEFLT_MODE param description 2023-04-24 13:34:20 +10:00
Randy Mackay
8d8d11a139 AC_WPNav: wpnav speed param check fixed 2023-04-24 13:29:05 +10:00
Peter Barker
dfcadfc618 AP_Notify: add and use AP_NOTIFY_TONEALARM_ENABLED 2023-04-23 16:24:02 +10:00
Peter Barker
6933000395 AP_HAL_ChibiOS: add and use AP_NOTIFY_TONEALARM_ENABLED 2023-04-23 16:24:02 +10:00
Henry Wurzburg
11def9b958 AP_Notify: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL 2023-04-23 11:19:50 +10:00
Henry Wurzburg
efd0937568 AP_HAL_ChibiOS: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL 2023-04-23 11:19:50 +10:00
Peter Barker
dafc24b7a1 AP_HAL_ChibiOS: tidy external baro probing 2023-04-23 08:28:55 +10:00
Peter Barker
100b8d3915 AP_Baro: tidy external baro probing 2023-04-23 08:28:55 +10:00
Peter Barker
d3ce0356b8 hwdef: remove uart7 from thepeach-r1 bootloader to get it compiling
out of space otherwise
2023-04-22 13:58:02 +10:00
Peter Barker
e37b3f9fcd hwdef: remove uart7 from thepeach-k1 bootloader to get it compiling
out of space otherwise
2023-04-22 13:58:02 +10:00