Commit Graph
209 Commits
Author SHA1 Message Date
Andy Piper f06b568151 AP_Scripting: return alt frame from safe alt fence bindings
Update get_safe_alt_min and get_safe_alt_max bindings to also return
the altitude frame as a second return value. Existing callers are not
broken as Lua silently discards extra return values.
2026-03-24 10:44:04 +11:00
Iampete1 ce6d78c653 AP_Scripting: Add bindings to allow updating servo telem 2026-02-10 10:21:16 +11:00
Andy Piper 9562c98f84 AP_Scripting: allow vehicles to yaw to target
docs for set_target_velocity_NED()
add set_target_angle_and_rate_and_throttle() for precise vehicle control
manual binding for set_target_velocity_NED() to allow optional boolean
update docs for attitude control
2025-12-17 16:31:37 +00:00
Andy Piper a14116f64a AP_Scripting: add get_throttle_in() to scripting 2025-12-17 16:31:37 +00:00
Andy Piper 83e2647b5e AP_Scripting: add access to more fence methods 2025-12-03 19:18:19 +00:00
Peter Barker 27781c8f18 AP_Scripting: add a pair of warnings about using RC set_override method
had an instance where a script was using this override and didn't failsafe as expected
2025-11-28 18:26:08 +11:00
Andy Piper 94bc8d86e3 AP_Scripting: add CRSF peek_menu_event() and pop_menu_event()
add CRSF send_response() method
2025-11-19 19:01:11 +11:00
Peter Barker 93f45acb45 AP_Scripting: rename airspeed methods on AHRS to include EAS or TAS
mixing these up has caused confusion in the past.

"estimate" could also be confused as to mean "synthetic", when it will often come from a sensor.
2025-11-17 18:46:52 -06:00
Iampete1 790c735999 AP_Scripting: allow scripting report power percentage ESC telem 2025-11-16 11:44:35 +11:00
Andy Piper c5540252e4 AP_Scripting: add get_breach_direction_NED() to lua bindings
optionally return last breach position
2025-11-05 18:24:54 +11:00
Oleksiy Protas 979142b953 AP_Scripting: serial begin() automatic baud rate
If the baud rate is omitted or nil, use the HAL-derived value
which usually is taken from the corresponding parameter.
2025-10-20 23:05:47 +02:00
Iampete1 ed8c82a1f2 AP_Scripting: Docs: update BattMonitorScript_State_ud comments 2025-10-20 15:36:27 -05:00
Peter Barker 9b240db037 AP_Scripting: add a binding for set_alt_m 2025-10-11 12:39:41 -05:00
Tim Tuxworth 6b4743f027 AP_Scripting: plane_follow.lua applet 2025-10-07 11:48:50 +11:00
Tom Pittenger 08b209d340 AP_Scripting: fix periph:get_vehicle_state to be 64 bit 2025-09-29 15:16:23 +10:00
Iampete1 b9c177c363 AP_Scripting: check channel is valid before trying to send on it 2025-09-16 11:00:05 +01:00
Iampete1 064655cb4a AP_Scripting: add binding for UART set_unbuffered_writes 2025-09-15 18:18:55 -05:00
Iampete1 5f33bc7af8 AP_Scripting: update esc_telem:update_rpm method to use float 2025-09-15 18:18:55 -05:00
Andrew Tridgell 3393fa2ed9 AP_Scripting: added is_pending() method on sockets
allows for non-blocking TCP connections
2025-09-03 15:17:39 +01:00
Tim Tuxworth cc0b8164d2 AP_Scripting: scripted arming checks 2025-08-16 19:55:15 +01:00
Tim Tuxworth 012fc280a8 Tools: tests for scripted arming checks 2025-08-16 19:55:15 +01:00
Peter Barker 4e7e417dc3 AP_Scripting: add test for NAMED_VALUE_STRING 2025-08-10 08:38:08 +10:00
Andrew Tridgell 086472de8f AP_Scripting: added an add_route() binding
allows custom network routes
2025-07-13 13:31:59 +10:00
Yuri RageandThomas 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
Abdulaziz 6b30f2cccb AP_Scripting: provide bindings for parity and stop bits 2025-06-07 18:51:00 -05: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 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
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
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
Iampete1 d82e92a5b7 AP_Scripting: Battery monitor: allow setting state of health 2025-04-15 08:40:48 +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 814da063f1 AP_Scripting: update crsf menu docs 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
Andrew Tridgell f3506c6481 AP_Scripting: added gyro to set_pose 2025-04-02 07:05:04 +11:00
Andrew Tridgell efbb1cf06f AP_Scripting: added set_pose SITL binding
and example script
2025-03-26 20:02:20 +11:00
Randy Mackay b1d0273384 AP_Scripting: AR_AttitudeControl docs typo fix 2025-03-26 18:47:52 +11:00
Randy Mackay 594d44708d AP_Scripting: remove AR_PosControl slew rate binding 2025-03-26 18:47:52 +11:00
Iampete1 8b0128f95b AP_Scripting: Docs: document logging of booleans
colcon build/test / build-test (push) Waiting to run
Cygwin Build / build (push) Waiting to run
ESP32 Build / build (esp32buzz, 10) (push) Waiting to run
ESP32 Build / build (esp32s3empty, 10) (push) Waiting to run
Macos Build / build (CubeOrange) (push) Waiting to run
Macos Build / build (sitl) (push) Waiting to run
QURT Build / build (push) Waiting to run
test ccache / build (10, chibios) (push) Waiting to run
test chibios / build (CubeOrange-ODID, 10, chibios) (push) Waiting to run
test chibios / build (CubeOrange-PPP, 10, chibios) (push) Waiting to run
test chibios / build (CubeOrange-bootloader, 10, chibios) (push) Waiting to run
test chibios / build (CubeRed-EKF2, 10, chibios) (push) Waiting to run
test chibios / build (CubeRedPrimary-bootloader, 10, chibios) (push) Waiting to run
test chibios / build (MatekF405-Wing, 10, chibios) (push) Waiting to run
test chibios / build (Pixhawk6X-PPPGW, 10, chibios) (push) Waiting to run
test chibios / build (SOHW, 10, chibios) (push) Waiting to run
test chibios / build (build-options-defaults-test, 10, chibios) (push) Waiting to run
test chibios / build (configure-all, 10, chibios) (push) Waiting to run
test chibios / build (fmuv2-plane, 10, chibios) (push) Waiting to run
test chibios / build (fmuv3, 10, chibios) (push) Waiting to run
test chibios / build (fmuv3-bootloader, 10, chibios) (push) Waiting to run
test chibios / build (iofirmware, 10, chibios) (push) Waiting to run
test chibios / build (new-check, 10, chibios) (push) Waiting to run
test chibios / build (periph-build, 10, chibios) (push) Waiting to run
test chibios / build (revo-bootloader, 10, chibios) (push) Waiting to run
test chibios / build (revo-mini, 10, chibios) (push) Waiting to run
test chibios / build (signing, 10, chibios) (push) Waiting to run
test chibios / build (stm32f7, 10, chibios) (push) Waiting to run
test chibios / build (stm32h7, 10, chibios) (push) Waiting to run
test chibios / build (stm32h7-debug, 10, chibios) (push) Waiting to run
test dds / build (sitl) (push) Waiting to run
test dds / build (stm32h7) (push) Waiting to run
test Linux SBC / build (bbbmini, armhf) (push) Waiting to run
test Linux SBC / build (bebop, armhf) (push) Waiting to run
test Linux SBC / build (bhat, armhf) (push) Waiting to run
test Linux SBC / build (canzero, armhf) (push) Waiting to run
test Linux SBC / build (erlebrain2, armhf) (push) Waiting to run
test Linux SBC / build (linux, base) (push) Waiting to run
test Linux SBC / build (navigator, armhf-musl) (push) Waiting to run
test Linux SBC / build (navigator64, aarch64) (push) Waiting to run
test Linux SBC / build (navio, armhf) (push) Waiting to run
test Linux SBC / build (navio2, armhf) (push) Waiting to run
test Linux SBC / build (pxf, armhf) (push) Waiting to run
test Linux SBC / build (pxfmini, armhf) (push) Waiting to run
test replay / build (replay, base) (push) Waiting to run
test replay / build (replay, clang) (push) Waiting to run
test scripts / build (astyle-cleanliness) (push) Waiting to run
test scripts / build (check_autotest_options) (push) Waiting to run
test scripts / build (logger_metadata) (push) Waiting to run
test scripts / build (param_parse) (push) Waiting to run
test scripts / build (python-cleanliness) (push) Waiting to run
test scripts / build (validate_board_list) (push) Waiting to run
test blimp / build (base) (push) Waiting to run
test blimp / build (clang) (push) Waiting to run
test blimp / autotest (sitltest-blimp) (push) Blocked by required conditions
test copter / build (base) (push) Waiting to run
test copter / build (clang) (push) Waiting to run
test copter / autotest (sitltest-copter-tests1a) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests1b) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests1c) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests1d) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests1e) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests2a) (push) Blocked by required conditions
test copter / autotest (sitltest-copter-tests2b) (push) Blocked by required conditions
test copter / build-gcc-heli (push) Waiting to run
test copter / autotest-heli (sitltest-heli) (push) Blocked by required conditions
test ap_periph / build-gcc-ap_periph (push) Waiting to run
test ap_periph / autotest-can (sitltest-can) (push) Blocked by required conditions
test plane / build (base) (push) Waiting to run
test plane / build (clang) (push) Waiting to run
test plane / autotest (sitltest-plane-tests1a) (push) Blocked by required conditions
test plane / autotest (sitltest-plane-tests1b) (push) Blocked by required conditions
test plane / autotest (sitltest-quadplane) (push) Blocked by required conditions
test rover / build (base) (push) Waiting to run
test rover / build (clang) (push) Waiting to run
test rover / autotest (sitltest-balancebot) (push) Blocked by required conditions
test rover / autotest (sitltest-rover) (push) Blocked by required conditions
test rover / autotest (sitltest-sailboat) (push) Blocked by required conditions
test sub / build (base) (push) Waiting to run
test sub / build (clang) (push) Waiting to run
test sub / autotest (sitltest-sub) (push) Blocked by required conditions
test tracker / build (base) (push) Waiting to run
test tracker / build (clang) (push) Waiting to run
test tracker / autotest (sitltest-tracker) (push) Blocked by required conditions
test unit tests and sitl building / build (examples, base) (push) Waiting to run
test unit tests and sitl building / build (examples, clang) (push) Waiting to run
test unit tests and sitl building / build (sitl, base) (push) Waiting to run
test unit tests and sitl building / build (sitl, clang) (push) Waiting to run
test unit tests and sitl building / build (unit-tests, base) (push) Waiting to run
test unit tests and sitl building / build (unit-tests, clang) (push) Waiting to run
test scripting / test-scripting (push) Has been cancelled
2025-03-19 13:01:05 +11:00
Iampete1 fe3f12dc87 AP_Scripting: Docs: correct argument order on mavlink:init 2025-02-08 11:38:06 -06:00
Peter Barker 8ea5ef2784 AP_Scripting: allow for more than 327m range rangefinders 2025-01-21 10:54:05 +11:00
Iampete1andThomas Watson 4189167a78 AP_Scripting: docs: remove incorrect camera creation function
Fix generator to skip generation of docs for generation methods that
don't exist, and to avoid generating Lua creation methods that couldn't
be called.

Co-authored-by: Thomas Watson <twatson52@icloud.com>
2025-01-14 10:49:31 +11:00
Iampete1 decfeeeaf5 AP_Scripting: add bindings for servo telem 2025-01-14 10:49:31 +11:00
Andrew Tridgell 9503744e6a AP_Scripting: added get_att_error_angle_deg binding for AC_AttitudeControl 2024-12-22 07:09:31 +11:00
Randy Mackay 56cb20ac50 AP_Scripting: add get_vel_target poscontrol binding 2024-12-18 18:28:12 +11:00
Randy Mackay 3325bdd7df AP_Scripting: set-video-stream-info encoding binding and docs 2024-12-05 16:46:48 +09:00