Commit Graph
245 Commits
Author SHA1 Message Date
Randy Mackay 71cf8dcb5c AP_Scripting: arming-checks update for copter RTL parms 2026-01-23 11:51:54 +11:00
Randy Mackay 8ede7673ba AP_Scripting: param-set example uses new RTL params 2026-01-23 11:51:54 +11:00
Thomas Watson 56005f8ca8 AP_Scripting: fix minor bug in repl applet
If `writechar` failed because the serial buffer was full, then `tx_buf`
could be nil and appending to it would fail. Fix by letting
`writestring` handle the work in this rare case.

Also bump the version to signify the fix.
2026-01-18 14:56:58 -06:00
Aadarsh Agarwal d20814809e AP_Scripting: fix 'received' typo in RockBlock applet 2026-01-03 13:55:07 +09:00
Leonard Hall f71edcdb15 AP_Scripting: : NEU to NED renaming - Parameter Name Change 2025-12-17 08:03:10 +09:00
Andy Piper bd08004972 AP_Scripting: update crsf-calibrate.md install instructions 2025-12-16 13:32:00 +00:00
Andy Piper 9e54d43b16 AP_Scripting: refactor crsf-calibrate.lua to use new crsf_helper.lua module 2025-12-16 13:32:00 +00:00
Andrew Tridgell 9456449a44 AP_Scripting: removed zero field in plane_precland.lua
always zero
2025-12-16 08:19:11 +11:00
Andrew Tridgell 150c0e0879 AP_Scripting: add arm error for no battery tag
if the user neglects to connect the battery tag give a clear error
message
2025-11-27 07:32:09 +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
Stephen Dade d256a73ee7 AP_Scripting: Add Rockblock 9704 Lua script 2025-11-17 19:18:42 +11:00
George Zogopoulos a730781de7 AP_Scripting: param-set.lua: Add missing enum 2025-11-05 08:50:25 -06:00
Andrew Tridgell 3a14f4a52d AP_Scripting: added throttle_kill applet
for killing turbine engines that rely on low PWM (below SERVO3_MIN) to
kill the engine
2025-10-22 19:51:27 +11:00
AlexisMGL 68636140f8 AP_Scripting: fix behavior when when PLND_XY_DIST_MAX=0 2025-10-22 18:21:06 +11:00
Peter Barker 2322ea7a7f AP_Scripting: have param-set.lua send PARAM_ERROR messages 2025-10-18 11:50:33 +11:00
Andrew Tridgell 210f0b7e53 AP_Scripting: added CAN_playback.lua
used to play back a log captured using CAN_Pn_OPTIONS=1
2025-10-14 12:56:57 +11:00
Tim Tuxworth ae038a5886 AP_Scripting: update plane_flllow.md documentation 2025-10-11 08:19:10 +02:00
Tim Tuxworth 6b4743f027 AP_Scripting: plane_follow.lua applet 2025-10-07 11:48:50 +11:00
Andrew Tridgell a3041bd10f AP_Scripting: fixed battery tag on 2nd CAN bus
allow for tags on either bus
2025-09-29 12:43:19 +10:00
timtuxworth 435ae628fb AP_Scripting: quadplane terrain avoidance with can't make that climb 2025-08-19 22:23:08 -05:00
Tim Tuxworth cc0b8164d2 AP_Scripting: scripted arming checks 2025-08-16 19:55:15 +01:00
Andrew Tridgell 7e0daa6609 AP_Scripting: added MOT slew rates to revert_params.lua 2025-08-06 08:25:44 +10:00
Peter Barker 55277a339e AP_Scripting: copter_terrain_brake: read aloud activation message 2025-07-29 21:23:39 +10:00
Peter Barker 3708936c62 global: correct shebang lines to refernce python3
also remove the odd encoding line which is not required in Py3
2025-07-22 10:45:57 +10:00
Joseph Stewart d9f1287c8b AP_Scripting: Use unified regex pattern for parameter parsing 2025-07-22 09:31:59 +10:00
Joseph Stewart c4ba818ca5 AP_Scripting: write full param lists without timeout 2025-07-22 09:31:59 +10:00
Joseph Stewart ada20e5224 AP_Scripting: Added comma delimited parameter files in param controller 2025-07-22 09:31:59 +10:00
Andrew Tridgell 55c8eee5a5 AP_Scripting: added BTAG_CUR_CYCLES
this can be used by another battery estimation lua script to adjust
for max number of cycles across all batteries
2025-07-17 21:15:30 +10:00
Iampete1 cce22722e9 AP_Scripting: applets: UniversalAutoLand: rename params to avoid name conflict with native mode 2025-07-08 10:03:42 +10:00
Andrew Tridgell 85b2de8b95 AP_Scripting: added docs for plane_ship_landing.lua
based on https://discuss.ardupilot.org/t/ship-landing-support/82772
2025-07-05 18:23:23 +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
Christian Clauss e4fb97b745 AP_Scripting: Add # flake8: noqa linter directive 2025-06-20 20:30:15 +10:00
Peter Barker 1f8370b615 AP_Scripting: update scripts for get_roll->get_roll_rad rename 2025-06-05 17:28:41 +10: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
Andrew Tridgell f30766f645 AP_Scripting: added BatteryTag applet 2025-05-17 09:25:46 +10:00
Peter BarkerandRyan 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
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
Stephen Dade 5fa2603adc AP_Scripting: make min speed configurable in rover-quicktune 2025-04-15 08:39:56 +09:00
Andrew Tridgell 10cc9f57b7 AP_Scripting: fixed usage of terrain_alt in RockBlock.lua 2025-04-10 06:44:55 +10:00
Andy Piper 129b3b4f5f AP_Scripting: AP calibration menu 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
rubenp02 afc70a7936 AP_Scripting: Generalize SoC model for more chems.
Made the SoC model more flexible by turning the previously fixed
parameter p0 into a free coefficient C4. This parameter controls the
steepness of the SoC curve transition, so this change allows the model
to also fit other battery technologies such as Li-ion.
2025-03-18 11:25:41 +11:00
Stephen Dade 7ee0232d83 AP_Scripting: Better mavlink parsing for MAVLinkHL and Rockblock
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-02-27 11:39:56 +11:00
Thomas Watson 962616a76f AP_Scripting: update so mavlink init intent matches behavior
RX message ID buffer sizes have been shrunk to the amount actually used.
2025-02-08 13:52:21 -06:00