Commit Graph
11 Commits
Author SHA1 Message Date
Andrew TridgellandClaude Opus 4.7 3ad3bb46ff AP_HAL_SITL: add sitl_periph_PPP PPPGW build target
New SITL AP_Periph board modelled on the ChibiOS PPPGW boards (eg
Pixhawk6X-PPPGW), with the PPP networking backend, scripting, and a
ROMFS-embedded copy of the pppgw_webui.lua web interface from
Tools/AP_Periph/Web. Intended for end-to-end PPP testing between two
ArduPilot SITL processes and for exercising the PPPGW web server in
SITL.

The hwdef:
 - enables AP_PERIPH_NETWORKING_ENABLED, AP_NETWORKING_BACKEND_PPP and
   AP_NETWORKING_CAN_MCAST_ENABLED;
 - points NET_PPP_PORT at serial 1 so the periph can be wired to the
   plane SITL via --serial1=tcpclient:127.0.0.1:<port>;
 - enables AP_SCRIPTING + AP_FILESYSTEM_ROMFS + AP_PARAM_DYNAMIC, and
   embeds Tools/AP_Periph/Web/ via ROMFS_DIRECTORY;
 - disables Lua bindings whose backing libraries AP_Periph does not link
   (AP_Vehicle/AC_Fence/AP_Button/AP_Camera/AP_Mount/AP_OpticalFlow/
   AP_VisualOdom/AP_Frsky_Telem/AP_Arming/RC_Channel). ChibiOS periph
   builds handle this via defaults_periph.h; SITL periph has no
   equivalent so we list the gates inline.

ROMFS support for SITL hwdefs (the ROMFS / ROMFS_WILDCARD /
ROMFS_DIRECTORY keywords) is added to sitl_hwdef.py, modelled on the
ChibiOS hwdef parser. Files are published via env_vars['ROMFS_FILES']
and picked up by the existing waf embed_ROMFS_files step in boards.py.

A new sitl_periph_PPP-specific defaults file
(Tools/autotest/default_params/periph-ppp.parm) holds runtime overrides
that should always apply to this build: NET_PPP_BAUD=921600 (saner
than the 12.5Mbaud real-hardware default for the loopback-TCP
transport), and SCR_ENABLE=1 so the web interface script comes up at
boot.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 17:08:34 +10:00
Peter Barker 09964a4ebe Tools: correct Python import lines for ruff correctness 2026-03-14 20:08:01 +11:00
Randy Mackay b36fb7f133 Tools: param_check_all loses skywalker files from skip list 2025-12-10 10:27:32 -06:00
Randy Mackay 40b40492da Tools: param-check-all skip list shortened 2025-12-10 18:06:09 +11:00
Bob Long e1fb6c8f64 Tools: fix type hints in param_check
We changed the default to None, but forgot to update the type hints.
Also some drive-by whitespace cleanups.
2025-11-12 20:49:39 +11:00
Peter Barker 76a39dc4df Tools: fix flake8 B008 errors, methods-in-function-definitions
e.g.

./Tools/scripts/param_check_all.py:180:40: B008 Do not perform function calls in argument defaults.  The call is performed only once at function definition time. All calls to your function will reuse the result of that definition-time function call.  If this is intended, assign the function call to a module-level variable and use that variable as a default value.
2025-10-27 11:18:20 +11:00
Bob Long 23c21bfcec Tools: remove last vehicles from hwdefs to skip 2025-06-27 13:10:31 +10:00
Bob Long 82faa97874 Tools: remove 4 vehicles from param check skip 2025-06-25 17:13:21 +01:00
Bob Long dfd48f9e15 Tools: remove luminousbee5 from param check skip 2025-06-19 21:27:52 +10:00
Bob Long 3e244ec063 Tools: remove Solo boards from param check skip 2025-06-18 22:56:55 +10:00
Bob Long 8d1d0a2107 Tools: add param_check_all script 2025-06-10 22:14:13 +10:00