Peter Barker
8aaeef5724
AP_Scripting: docs_check.py: flake8 correctness
...
... also avoid catching bare exception, handle the case where the regex isn't matching
2025-06-22 09:04:16 +10:00
Yuri Rage and Thomas Watson
e952d4b16b
AP_Scripting: add net-ntrip applet
...
Co-authored-by: Thomas Watson <twatson52@mac.com >
Co-authored-by: Thomas Watson <twatson52@mac.com >
2025-06-20 19:44:33 -05:00
Christian Clauss
dc9446af62
wscript: Add # flake8: noqa linter directive
2025-06-20 20:30:15 +10:00
Christian Clauss
e4fb97b745
AP_Scripting: Add # flake8: noqa linter directive
2025-06-20 20:30:15 +10:00
Andrew Tridgell
acda8428f8
AP_Scripting: use CMUX for LTE_modem
...
using CMUX allows us to have AT commands run in parallel with PPP or
TCP data, allowing for signal strength and other data to be retrieved
this also adds auto-bauding, with separate LTE_IBAUD and LTE_BAUD
parameters, avoiding the need to configure the hardware baud rate with
a terminal program
2025-06-16 12:29:44 +10:00
Andrew Tridgell
98b42cf2fc
AP_Scripting: added LTE_OPTIONS to LTE driver
2025-06-16 12:29:44 +10:00
Christian Clauss
966588f714
AP_Scripting: Fix check-shebang-scripts-are-executable
2025-06-15 11:17:47 +10:00
Abdulaziz
6b30f2cccb
AP_Scripting: provide bindings for parity and stop bits
2025-06-07 18:51:00 -05:00
Andrew Tridgell
63a40b65e3
AP_Scripting: rename SIM7600 to LTE_modem
...
we will soon be supporting other modem chipsets
2025-06-06 18:09:51 +10:00
Andrew Tridgell
f86918e5ae
AP_Scripting: added support for PPP connections to SIM7600 driver
...
this allows for the modem to be used as a PPP server, allowing the
full range of ArduPilot networking capabilities, which means multiple
TCP and UDP connections, scripting sockets etc
2025-06-06 18:09:51 +10:00
Peter Barker
1f8370b615
AP_Scripting: update scripts for get_roll->get_roll_rad rename
2025-06-05 17:28:41 +10:00
Peter Barker
fa899c14cc
AP_Scripting: new scripting bindings get_roll_rad
...
deprecate the old get_roll binding
2025-06-05 17:28:41 +10:00
Peter Barker
c873d8bb53
AP_Scripting: rename AHRS get_roll etc accessors to include _rad
2025-06-05 17:28:41 +10:00
Andrew Tridgell
8cd83b8e64
AP_Scripting: LTE driver using SIM7600 AT commands
...
colcon build/test / build-test (push) Has been cancelled
Cygwin Build / build (push) Has been cancelled
ESP32 Build / build (esp32buzz, 10) (push) Has been cancelled
ESP32 Build / build (esp32s3empty, 10) (push) Has been cancelled
Macos Build / build (CubeOrange) (push) Has been cancelled
Macos Build / build (sitl) (push) Has been cancelled
QURT Build / build (push) Has been cancelled
test ccache / build (10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-EKF2, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-ODID, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-PPP, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (CubeRedPrimary-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (MatekF405-Wing, 10, chibios) (push) Has been cancelled
test chibios / build (Pixhawk6X-PPPGW, 10, chibios) (push) Has been cancelled
test chibios / build (SOHW, 10, chibios) (push) Has been cancelled
test chibios / build (build-options-defaults-test, 10, chibios) (push) Has been cancelled
test chibios / build (configure-all, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv2-plane, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv3, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv3-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (iofirmware, 10, chibios) (push) Has been cancelled
test chibios / build (new-check, 10, chibios) (push) Has been cancelled
test chibios / build (periph-build, 10, chibios) (push) Has been cancelled
test chibios / build (revo-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (revo-mini, 10, chibios) (push) Has been cancelled
test chibios / build (signing, 10, chibios) (push) Has been cancelled
test chibios / build (stm32f7, 10, chibios) (push) Has been cancelled
test chibios / build (stm32h7, 10, chibios) (push) Has been cancelled
test chibios / build (stm32h7-debug, 10, chibios) (push) Has been cancelled
test dds / build (sitl) (push) Has been cancelled
test dds / build (stm32h7) (push) Has been cancelled
test Linux SBC / build (bbbmini, armhf) (push) Has been cancelled
test Linux SBC / build (bebop, armhf) (push) Has been cancelled
test Linux SBC / build (bhat, armhf) (push) Has been cancelled
test Linux SBC / build (canzero, armhf) (push) Has been cancelled
test Linux SBC / build (erlebrain2, armhf) (push) Has been cancelled
test Linux SBC / build (linux, base) (push) Has been cancelled
test Linux SBC / build (navigator, armhf-musl) (push) Has been cancelled
test Linux SBC / build (navigator64, aarch64) (push) Has been cancelled
test Linux SBC / build (navio, armhf) (push) Has been cancelled
test Linux SBC / build (navio2, armhf) (push) Has been cancelled
test Linux SBC / build (pxf, armhf) (push) Has been cancelled
test Linux SBC / build (pxfmini, armhf) (push) Has been cancelled
test replay / build (replay, base) (push) Has been cancelled
test replay / build (replay, clang) (push) Has been cancelled
test scripts / build (astyle-cleanliness) (push) Has been cancelled
test scripts / build (check_autotest_options) (push) Has been cancelled
test scripts / build (logger_metadata) (push) Has been cancelled
test scripts / build (param_parse) (push) Has been cancelled
test scripts / build (python-cleanliness) (push) Has been cancelled
test scripts / build (validate_board_list) (push) Has been cancelled
test blimp / build (base) (push) Has been cancelled
test blimp / build (clang) (push) Has been cancelled
test blimp / autotest (sitltest-blimp) (push) Has been cancelled
test copter / build (base) (push) Has been cancelled
test copter / build (clang) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1a) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1b) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1c) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1d) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests1e) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests2a) (push) Has been cancelled
test copter / autotest (sitltest-copter-tests2b) (push) Has been cancelled
test copter / build-gcc-heli (push) Has been cancelled
test copter / autotest-heli (sitltest-heli) (push) Has been cancelled
test ap_periph / build-gcc-ap_periph (push) Has been cancelled
test ap_periph / autotest-can (sitltest-can) (push) Has been cancelled
test plane / build (base) (push) Has been cancelled
test plane / build (clang) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1a) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1b) (push) Has been cancelled
test plane / autotest (sitltest-quadplane) (push) Has been cancelled
test rover / build (base) (push) Has been cancelled
test rover / build (clang) (push) Has been cancelled
test rover / autotest (sitltest-balancebot) (push) Has been cancelled
test rover / autotest (sitltest-rover) (push) Has been cancelled
test rover / autotest (sitltest-sailboat) (push) Has been cancelled
test sub / build (base) (push) Has been cancelled
test sub / build (clang) (push) Has been cancelled
test sub / autotest (sitltest-sub) (push) Has been cancelled
test tracker / build (base) (push) Has been cancelled
test tracker / build (clang) (push) Has been cancelled
test tracker / autotest (sitltest-tracker) (push) Has been cancelled
test unit tests and sitl building / build (examples, base) (push) Has been cancelled
test unit tests and sitl building / build (examples, clang) (push) Has been cancelled
test unit tests and sitl building / build (sitl, base) (push) Has been cancelled
test unit tests and sitl building / build (sitl, clang) (push) Has been cancelled
test unit tests and sitl building / build (unit-tests, base) (push) Has been cancelled
test unit tests and sitl building / build (unit-tests, clang) (push) Has been cancelled
test scripting / test-scripting (push) Has been cancelled
provides a transparent TCP connection to a server
2025-06-03 11:11:22 +10:00
rishabsingh3003
dab81d0f7d
AP_Scripting: Correct typo in EFI DLA Driver
2025-05-27 12:56:11 +01:00
Ryan Friedman
03adf5e801
AP_Scripting: Add trisonica LI550 3D wind sensor logger
...
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com >
2025-05-24 20:09:14 -05:00
Peter Barker
3ec715e81c
AP_Scripting: rename get_relative_position_NED_origin methods to include 'float'
...
can't have both postype and these methods, something has to shift names
2025-05-24 09:23:35 +09:00
Andrew Tridgell
e519a93037
AP_Scripting: added notch params to revert param script
...
useful for testing notch changes in flight
2025-05-23 08:42:03 +01:00
Peter Barker
27465b5c33
AP_Scripting: param-set.lua: trim out unused MAV_SYSID parameter reference
2025-05-20 19:39:52 +10:00
Peter Barker
18ba475340
AP_Scripting: add param-set-filter LUA applet and bindings for same
...
AP_Scripting: add param-set.md to document new applet
with thanks to ChatGPT for the documentation!
2025-05-20 13:32:16 +10:00
Thomas Watson
62e33f847b
AP_Scripting: use luaL_checklstring instead of lua_tolstring in helpers
...
The latter returns a null pointer (and sets the string size to zero) if
the conversion fails, which the following code neglects to check,
potentially leading to null pointer dereferences.
Instead use the former, which throws a helpful type error if it fails
and doesn't expose the code to null pointers.
2025-05-18 11:59:24 +10:00
Thomas Watson
55889f6db7
AP_Scripting: use luaL_checklstring for serial port writestring
...
Avoids potential null pointer dereferences if a port write method can't
handle a null pointer when doing a zero length write. Also provides a
nice type error if something that can't be converted to a string is
passed.
2025-05-18 11:58:54 +10:00
Thomas Watson
a20dd5af68
AP_Scripting: avoid dereferencing NULL for non-string error objects
...
Various places print "error objects", which are nominally things passed
to `error()`. However, the user can pass anything to that function, e.g.
`error(nil)`. This causes `lua_tostring` to return `NULL` and the string
format to dereference that pointer if it happens at the top level.
Fix the issue by using a helper to convert error objects to strings that
returns a sentinel string if the conversion fails.
2025-05-18 11:58:54 +10:00
Andrew Tridgell
f30766f645
AP_Scripting: added BatteryTag applet
2025-05-17 09:25:46 +10:00
Peter Barker and Ryan Friedman
2e414af057
AP_Scripting: correct use of pcall in examples and applets
...
Co-authored-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com >
2025-05-17 08:16:52 +10:00
Peter Barker
a85e9b679a
AP_Scripting: plane_ship_landing.lua: add pos/vel sanity check
...
this method can return false if the target is outside the AP_Follow acceptance radius. So we can be receiving messages from the target, so have_target can be true, but false is returned from get_target_location_and_velocity_ofs, meaning we try to call methods on nil values
2025-05-14 11:06:56 +10:00
Andrew Tridgell
78d42fcf24
AP_Scripting: example of using DroneCAN messaging
2025-05-09 13:08:40 +10:00
Andrew Tridgell
4a442d3b20
AP_Scripting: support DroneCAN messaging in lua
...
allow for sending broadcast messages, subscribing to broadcast
messages and sending requests
2025-05-09 13:08:40 +10:00
Stephen Dade
d0b310668c
AP_Scripting: fix cast-local-type in Rockblock and MAVLinkHL
2025-04-29 17:21:00 +01:00
Iampete1
4e1457e86b
AP_Scripting: temporarily ignore lua language server issues
2025-04-29 11:29:28 +10:00
Peter Barker
bf8a9e5df4
AP_Scripting: add _cm to get_vector_from_origin_NEU
...
... and the _NE equivalent.
Moves us closer to using metres in interfaces. Several places already *0.01 the result of these methods
2025-04-29 08:29:41 +09:00
George Zogopoulos
8f7fbc8546
AP_Scripting: EFI HALO6000 fix
...
Sets the "is flying" bit of the 1A0 control message to 1.
This should force the engine to think the aircraft is in the air and
start producing power.
2025-04-21 21:53:00 +10:00
Stephen Dade
5fa2603adc
AP_Scripting: make min speed configurable in rover-quicktune
2025-04-15 08:39:56 +09:00
Iampete1
d82e92a5b7
AP_Scripting: Battery monitor: allow setting state of health
2025-04-15 08:40:48 +10:00
Andrew Tridgell
bd7e01dd36
AP_Scripting: added qnh_alt example
...
useful for BVLOS ops
2025-04-10 09:32:44 +10:00
Andrew Tridgell
10cc9f57b7
AP_Scripting: fixed usage of terrain_alt in RockBlock.lua
2025-04-10 06:44:55 +10:00
Andy Piper
ea0ea2f4af
AP_Scripting: add margin breach time to scripting
2025-04-09 17:01:04 +01:00
Andy Piper
980f4ad45d
AP_Scripting: expose get_breach_distance()
2025-04-09 17:01:04 +01:00
Andy Piper
a409118b00
AP_Scripting: add get_breached_margins()
2025-04-09 17:01:04 +01:00
Andy Piper
043054306b
AP_Scripting: add CRSF docs and lua wrapper fixes
2025-04-09 17:16:58 +10:00
Andy Piper
129b3b4f5f
AP_Scripting: AP calibration menu
2025-04-09 17:16:58 +10:00
Andy Piper
a62207298e
AP_Scripting: rename AP_CRSF_SCRIPTING_ENABLED
2025-04-09 17:16:58 +10:00
Andy Piper
17753490ca
AP_Scripting: update CRSF bindings
2025-04-09 17:16:58 +10:00
Andy Piper
814da063f1
AP_Scripting: update crsf menu docs
2025-04-09 17:16:58 +10:00
Andy Piper
25f0b7bda5
AP_Scripting: protect CRSF scripting when there is no scripting
2025-04-09 17:16:58 +10:00
Andy Piper
c54f0c5d1c
AP_Scripting: enable compilation when no CRSF scripting
2025-04-09 17:16:58 +10:00
Andy Piper
fa36e5623d
AP_Scripting: add CRSF menu bindings
...
add CRSF menu example
add scripted CRSF menu events
custom CRSFMenu helpers
play Beethoven's 5th on CRSF command
use native packed strings for CRSF menus and payloads
support CRSF submenus
2025-04-09 17:16:58 +10:00
Peter Barker
4a03c7bc9b
AP_Scripting: tweak MAV parameter names
2025-04-07 10:58:41 +10:00
Peter Barker
727eafbcca
AP_Scripting: SYSID_MYGCS and enforce move up to GCS, change to MAV_MYGCS_ENFRCE
2025-04-07 10:58:41 +10:00
Peter Barker
1f256707b5
AP_Scripting: adjust tooling to use MAV_SYSID
2025-04-07 10:58:41 +10:00