Commit Graph

1110 Commits

Author SHA1 Message Date
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
bugobliterator
350f718745 AP_HAL: don't include Semaphore headers while building C source 2023-04-28 12:36:08 +10:00
Andy Piper
ac8a94e655 AP_HAL: support is_busy() on WSPI device 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
a73945c1b3 AP_HAL: rename QSPIDevice to WSPIDevice 2023-04-28 08:31:15 +10:00
bugobliterator
cc02ad9224 AP_HAL: add HAL_FORWARD_OTG2_SERIAL define 2023-04-26 18:04:00 +10:00
bugobliterator
9663b3d409 AP_HAL: add __EXTFLASHFUNC__ define 2023-04-26 18:04:00 +10:00
Andy Piper
875481b823 AP_HAL: add helper functions for LEDs
add PRIORITY_LED for led output thread
2023-04-19 16:45:21 +01:00
Andrew Tridgell
d1e50cb0c8 AP_HAL: change to 16 bit timeout in event interface
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Andrew Tridgell
5d6b7b04d8 AP_HAL: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell
12ecb4354b AP_HAL: allow for 64 bit CAN on Linux 2023-04-10 14:46:54 +10:00
Andrew Tridgell
57f6343058 AP_HAL: fixed valgrind error 2023-04-10 14:46:54 +10:00
Andrew Tridgell
d8416eb38f AP_HAL: fixed build for HerePro 2023-04-08 07:11:23 +10:00
Andrew Tridgell
bdbcdfce60 AP_HAL: fixed SLCAN duplicate define 2023-04-08 07:11:23 +10:00
Andrew Tridgell
420ceec553 AP_HAL: rename AP_UAVCAN to AP_DroneCAN 2023-04-08 07:11:23 +10:00
bugobliterator
6dc73b3d54 AP_HAL: sitl: set default value of HAL_CAN_DRIVER_DEFAULT as 1 2023-03-29 17:16:39 +11:00
bugobliterator
10fb5d6b21 AP_HAL: enable virtual CAN for native built linux targets 2023-03-29 17:16:39 +11:00
bugobliterator
310a307c10 AP_HAL: add define AP_TEST_DRONECAN_DRIVERS 2023-03-29 17:16:39 +11:00
Tom Pittenger
8c7fc012d4 AP_HAL: fix CANFrame initialization in constructor 2023-03-26 18:23:30 +11:00
Peter Barker
394d70abe0 AP_HAL: add and use a "bool read(c)" method to AP_HAL
this is much less likely to not work vs the int16_t equivalent
2023-03-22 17:59:11 +11:00
Iampete1
7617606629 AP_HAL: GPIO: add arming check 2023-03-22 09:27:35 +11:00
Peter Barker
5ad5605bc8 AP_HAL: specify HAL_SUPPORT_RCOUT_SERIAL for periph in chibios_hwdef.py 2023-03-12 09:35:35 +11:00
Peter Barker
9fd72b6a68 AP_HAL: specify AP_STATS_ENABLED for periph in chibios_hwdef.py 2023-03-12 09:35:35 +11:00
Iampete1
36498cb4a0 AP_HAL: GPIO: PWMSource: add destructor to detach interurupt 2023-03-05 09:42:05 +11:00
Peter Barker
5f916a7fed AP_HAL: add waf argument to get consistent builds 2023-02-17 20:48:45 +11:00
Peter Barker
67500cce36 AP_HAL: SITL: add defaults for Rover frame class and string 2023-02-11 10:36:33 +11:00
Peter Barker
d71776d387 AP_HAL: avoid using struct Location
clang reports this could be a problem when compiling under some EABIs.  Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h
2023-02-04 22:51:54 +11:00
Peter Barker
81261e49e1 AP_HAL: add and use AP_COMPASS_HMC5843_ENABLED 2023-02-01 18:47:37 +11:00
Peter Barker
4cd97d58d7 AP_HAL: gate mavlink things on HAL_GCS_ENABLED, not HAL_BOOTLOADER_BUILD 2023-02-01 18:46:28 +11:00
olliw42
866db281a6 AP_HAL: bw_in_bytes_per_second() 2023-01-31 17:58:04 +11:00
Peter Barker
a2444d1df3 AP_HAL: enumeration format fixes 2023-01-25 19:50:34 +11:00
Andy Piper
31a216f670 AP_HAL: ensure the DSP tracked peaks do not overflow the buffer 2023-01-24 10:56:33 +11:00
Andrew Tridgell
13cbccc016 AP_HAL: added old_size to heap_realloc 2023-01-16 09:19:16 +11:00
Andrew Tridgell
a14c5b2955 AP_HAL: check for null buffer in ObjectBuffer get_size() 2023-01-08 15:11:32 +11:00
Peter Barker
fe4e4b0aff AP_HAL: correct sitl-on-hw compilation for Helicopters 2023-01-04 18:04:28 +11:00
Peter Barker
e8c5296087 AP_HAL: define AP_INERTIALSENSOR_ENABLED in a new AP_InertialSensor_config.h 2023-01-04 18:02:34 +11:00
Peter Barker
1725e794ed AP_HAL: rename HAL_INS_ENABLED to AP_INERTIALSENSOR_ENABLED 2023-01-03 10:28:42 +11:00
Andy Piper
921f51d08a AP_HAL: correct AP_SIM_FRAME_CLASS name 2022-12-31 09:32:32 +11:00
Andrew Tridgell
36d2c267fe AP_HAL: allow for a wider range of simulation backends in SIM-on-hw 2022-12-24 07:27:04 +11:00
Andrew Tridgell
5f8e655f98 AP_HAL: allow override of frame class and string for SITL on hw 2022-12-24 07:27:04 +11:00
Andy Piper
445aad17c9 AP_HAL: add UART baudrate accessor 2022-12-22 18:38:31 +00:00
Andrew Tridgell
05a6c0d026 AP_HAL: added statistics structure for CAN 2022-12-13 16:56:57 +11:00
Peter Barker
1c9d01c8fd AP_HAL: use singleton getter for Baro in SIMState
this instance variable was always nullptr due to constructor ordering
2022-12-13 12:51:39 +11:00
Wiktor Maslowski
be9aec4059 AP_HAL_ESP32: add empty board - without any sensors 2022-12-07 18:21:03 +11:00
Andrew Tridgell
4d51173e9c AP_HAL: added TIME_CHECK() macro
this can be used to find places where we use more time than
expected. It works similarly to WITH_SEMAPHORE()
2022-12-04 18:08:40 +11:00
James O'Shannessy
e2865f2fbc AP_HAL: Remove the forced definition of HAL_WITH_ESC_TELEM in sitl board
Co-authored-by: Simon Maddison <81274690+Sypaq-MadMan@users.noreply.github.com>
2022-12-01 11:09:58 +11:00
Peter Barker
e4a44c30ed AP_HAL: change namespace of MultiCopter and FixedWing params
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Peter Barker
506030820e AP_HAL: define HAL_MAX_CAN_PROTOCOL_DRIVERS for bootloader in hwdef.h 2022-11-08 12:06:54 +11:00
Peter Barker
cf9b43de6f AP_HAL: add missing include for APM_BUILD_TYPE
transient include broke
2022-11-05 22:53:49 +11:00
Peter Barker
b4d36707af AP_HAL: use minimize_features.inc for HAL_WITH_DSP 2022-11-05 14:52:10 +11:00