Commit Graph

910 Commits

Author SHA1 Message Date
Shiv Tyagi
dabd9ba73e Tools: use new AP_PERIPH_MSP_ENABLED define 2025-02-23 10:28:54 +11:00
Shiv Tyagi
873abe3fd3 Tools: use new AP_PERIPH_RELAY_ENABLED define 2025-02-23 08:58:36 +11:00
Shiv Tyagi
6a429b887a Tools: use new AP_PERIPH_RC_OUT_ENABLED define 2025-02-22 18:26:07 +11:00
Shiv Tyagi
76aed8f89c Tools: use new AP_PERIPH_HOBBYWING_ESC define 2025-02-20 21:56:14 +11:00
Shiv Tyagi
2b6bbedce6 Tools: use new AP_PERIPH_NOTIFY_ENABLED define 2025-02-20 13:32:20 +11:00
Shiv Tyagi
82a0347657 Tools: use new AP_PERIPH_EFI_ENABLED define 2025-02-20 13:05:19 +11:00
Shiv Tyagi
9b226edf3a Tools: use new AP_PERIPH_ADSB_ENABLED define 2025-02-20 12:06:00 +11:00
Peter Barker
69daff573b Tools: add and use linux_hwdef.py
like chibios_hwdef.py - but for Linux
2025-02-19 15:42:52 +11:00
Shiv Tyagi
222f3ceefd Tools: use AP_PERIPH_NETWORKING_ENABLED for HAL_PERIPH_ENABLE_NETWORKING 2025-02-17 09:55:51 +11:00
Shiv Tyagi
0248f0d5d8 Tools: replace HAL_PERIPH_ENABLE_AIRSPEED with AP_PERIPH_AIRSPEED_ENABLED 2025-02-16 10:11:10 +11:00
Shiv Tyagi
abc605c7e4 Tools: u AP_PERIPH_RPM_ENABLED and AP_PERIPH_RPM_STREAM_ENABLED 2025-02-13 20:29:06 +11:00
Shiv Tyagi
651e0be73c Tools: replace HAL_PERIPH_ENABLE_RCIN with AP_PERIPH_RCIN_ENABLED 2025-02-11 19:31:19 +11:00
Shiv Tyagi
0b96145fbb Tools: use AP_PERIPH_RTC_ENABLED in place of HAL_PERIPH_ENABLE_RTC 2025-02-10 09:37:48 +11:00
Shiv Tyagi
af1220f883 Tools: explicitly set AP_PERIPH_XX_ENABLED defines to 0 for sitl_periph_gps and sitl_periph_battmon 2025-02-08 23:25:12 +11:00
Shiv Tyagi
61fb095525 Tools: use AP_PERIPH_IMU_ENABLED in place of HAL_PERIPH_ENABLE_IMU 2025-02-08 08:22:10 +11:00
Peter Barker
8c7afb3741 waf: correct clang++ extension name
seems to have changed between versions
2025-02-06 10:21:16 +11:00
Peter Barker
400699fc38 waf: stop clang complaining about variable-length stack arrays 2025-02-05 18:05:40 +11:00
Peter Barker
613aa6028f waf: move setting of -cl-single-precision-constant into cxx-flags block
we have two separate blocks, one for setting c flags, one for setting cxx flags.

Move cxx set into correct area
2025-02-04 11:55:39 +11:00
Shiv Tyagi
c324143866 Tools: create and use AP_PERIPH_RANGEFINDER_ENABLED 2025-02-03 10:06:04 +11:00
Shiv Tyagi
dba4136f95 Tools: create and use AP_PERIPH_BARO_ENABLED 2025-01-31 08:25:28 +11:00
Shiv Tyagi
1060d6703b Tools: create and use AP_PERIPH_MAG_ENABLED 2025-01-30 08:49:03 +11:00
Thomas Watson
46e081aea1 ardupilotwaf: add -fno-math-errno to ChibiOS boards
Allows better use of math instructions as opposed to calling library
functions to implement math like `sqrt`. This saves flash and increases
speed. ArduPilot does not use EDOM or ERANGE anyway.

Might cause issues with malloc errno:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576 but ArduPilot does
not check for ENOMEM or use errno much anyway.
2025-01-28 11:54:34 +11:00
Peter Barker
b5ce6f1efd waf: disable battery-balance features on simulated periphs 2025-01-28 09:11:21 +11:00
Peter Barker
b3bc0528e0 Tools: create and use AP_PERIPH_BATTERY_ENABLED
... and AP_PERIPH_BATTERY_BALANCE_ENABLED while we're here
2025-01-28 09:11:21 +11:00
Peter Barker
04786200c3 Tools: create AP_PERIPH_GPS_ENABLED 2025-01-23 17:47:58 +11:00
Huibean
57e98e2b16 Waf:add --vs-launch 2025-01-22 18:23:57 +11:00
Thomas Watson
125c64074c ardupilotwaf: fix ESP32 memory zero comment
Followup to PR #29005 (d9e5f2d8a7).
2025-01-20 18:29:35 -06:00
Thomas Watson
949e6bcbba Tools: waf: have boards call superclass initializer
Allows future variables to propagate down to board subclasses.
only build littlefs when hwdef or board calls for it
Avoids issues with build on QURT due to QURT's poor POSIX
implementation.
2025-01-21 11:10:31 +11:00
Andy Piper
7f51f84fc6 waf: disable littlefs debug and asserts 2025-01-21 11:10:31 +11:00
Andy Piper
ce7f4db7ee waf: optionally add littlefs to sitl build options 2025-01-21 11:10:31 +11:00
Andy Piper
d1dd922915 waf: build littlefs filebd 2025-01-21 11:10:31 +11:00
Andy Piper
dc9c0fc165 waf: build in littlefs support 2025-01-21 11:10:31 +11:00
Thomas Watson
2d9865760d Tools: ensure ESP32 malloc is wrapped to zero memory
The relevant linker flag needed to be put in the CMake script.
2025-01-05 10:27:32 +11:00
Thomas Watson
05f024ade7 ardupilotwaf: properly configure double precision tests
Use new setup function. Unsure if this affects anything.
2024-12-31 08:16:55 +11:00
Thomas Watson
084661d099 ardupilotwaf: properly configure double precision tasks
There might be multiple copies of the flags, so remove all of them. Also
pull the setup into a helper function to avoid duplicating the logic.

On ChibiOS boards, this fixes SITL (which had issues with position
quantization) and affects the SBF GPS driver (which was probably fine
before but does change slightly).
2024-12-31 08:16:55 +11:00
Rhys Mainwaring
3235a0692c Tools: ardupilotwaf: esp32 does not have hardware double
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-12-26 19:59:15 -06:00
Thomas Watson
f964d3aed3 waf: add defaults.parm support to esp32 using ROMFS
And drop broken remnants of code using apj_tool to do it.
2024-12-24 10:50:21 +11:00
Thomas Watson
a14fb9ab28 AP_HAL_ESP32: regenerate sdkconfig after sdkconfig.defaults change
Ensures the sdkconfig does not get out of date as updates are made to
the defaults. The sdkconfig can still be manually changed for testing.
2024-12-10 10:32:47 +11:00
Andrew Tridgell
60f6a9deec waf: enable IMU in simulated AP_Periph 2024-12-10 09:29:37 +11:00
Andy Piper
21106380b3 waf: add rate loop config abstraction that allows code to be elided on non-copter builds 2024-12-04 07:45:05 +11:00
Iampete1
b9dd814935 Tools: ardupilotwaf: add AP_Servo_Telem to common vehicle libraries 2024-12-03 07:38:17 +11:00
Tom Pittenger
5503ac204e Tools: update WSL2 use in uploader.py 2024-12-02 11:31:35 -08:00
bugobliterator
93d99ece0a Tools:waf: add option to build IOMCU firmware with profiled support 2024-11-20 19:12:44 +11:00
Andrew Tridgell
c8e61402ec waf: added AP_MultiHeap 2024-11-20 07:32:03 +11:00
Peter Barker
7ee9a337e1 Tools: waf: build rally and fencepoint protocols in on SITL
so we continue to autotest them
2024-11-18 08:34:08 +11:00
Peter Barker
8a58642cd1 waf: make initialiser reordering fatal
we were bitten by a nasty bug in CAN because of constructor reordering
2024-11-13 06:40:37 +11:00
Patrick José Pereira
e4d92ecf9f Tools: ardupilotwaf: Print list of possible groups
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2024-11-08 10:55:38 +11:00
Willian Galvani
64b9d0ebea Tools: ardupilotwaf: add entry for 64bit versions of Navigator 2024-10-02 06:18:32 +10:00
ARg
f3a39105b9 Tools: Migration of ESP32 targets from idf 4.4 to 5.3 consisting of:
- Updated installation scripts of esp-idf toolchain;
- Adding ESP_PLATFORM define to ESP32 targets, it is required to compile FreeRTOS with idf 5.3;
2024-10-01 09:25:35 +10:00
Peter Barker
35a8a04787 waf: add -Werror=use-after-free to CFLAGS and CXXFLAGS 2024-09-19 11:42:50 +10:00