Commit Graph
271 Commits
Author SHA1 Message Date
Peter BarkerandClaude Fable 5 8a0f0c1e4c AP_Scripting: nest parameter names one level below Parameters headings
Parameter-name headings in the driver and applet markdown docs were at
the same level as the "Parameters" heading they sit under, so they
rendered as siblings rather than being nested within that section.
Demote them one level throughout.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-03 08:16:58 +10:00
Peter Barker ff67931891 AP_Scripting: use ahrs:get_wind in examples and applets
ahrs:wind_estimate() is deprecated.  Scripts which already checked the
returned value for nil now get a check which actually means something;
the rest fall back to a zero wind vector, which is what they were
already getting from an invalid estimate in most cases.
2026-07-28 13:48:28 +10:00
Andrew Tridgell b7ba8bca02 AP_Scripting: added actuator (ESC/Servo) chirp tool
used for measuring response bandwidth of a servo or ESC
2026-07-19 10:51:28 +10:00
Yuri Rage 4eabe72949 AP_Scripting: add is_crashed binding and applet 2026-07-07 08:33:58 +09:00
Iampete1 419538c761 AP_Scripting: applets: revert_param: add new fixedwing params to revert list 2026-07-07 00:29:57 +01:00
Andrew Tridgell 48644320dc AP_Scripting: revert_param: cover MOT_THST_EXPO and Q_M_THST_EXPO
pre-commit / ci (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-file-validation) (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 (shellcheck) (push) Has been cancelled
test scripts / build (validate_board_list) (push) Has been cancelled
test scripting / test-scripting (push) Has been cancelled
This is useful when adjusting expo, allowing quick revert if becomes unstable
2026-06-21 16:42:23 +10:00
Huibean 0deb22662c AP_Scripting: follow-target-send: guard poscontrol nil on non-Copter/Heli vehicles 2026-04-27 10:47:31 +10:00
Peter Barker 664c3ebd22 AP_Scripting: correct spelling errors in markdown files 2026-04-20 19:25:51 +10:00
Iampete1 124ebedfca AP_Scripting: fix language check issues 2026-04-04 09:29:55 +11:00
Tim Tuxworth d887c36143 AP_Scripting: plane_follow.lua fix crosstrack oscillation 2026-03-29 08:40:05 +11:00
Tim Tuxworth ca69d64f4e AP_Scripting: plane_follow.lua fix sendtext error if no target vehicle 2026-03-27 22:47:24 +11:00
Randy Mackay 23ee31d2b5 AP_Scripting: complete rename of param-lockdown applet 2026-03-20 12:46:45 +11:00
Randy Mackay c1094e4834 AP_Scripting: param-set applet renamed to param-lockdown 2026-03-20 12:46:45 +11:00
Tim Tuxworth 237b049f37 AP_Scripting: plane follow fix lowercase value in SIM_TLF_FN parameter 2026-03-20 09:34:08 +11:00
Randy Mackay f9fcf06c61 AP_Scripting: copter-deadreckon-home minor format fix 2026-02-24 14:50:55 +09:00
Randy Mackay 83d9c3abce AP_Scripting: copter-deadreckon update to use WP params 2026-02-24 14:50:55 +09:00
Peter Barker 04cbe9451a AP_Scripting: enclose _ and * not intended as markup in backticks
most markdown parsers will get this not-really-markup thing correct, but it can lead to inconsistencies.

Also fixes a few places where spaces had been introduced to avoid the underscores being considered markup!
2026-02-18 23:16:36 +11:00
Peter Barker faf3d5b2e1 AP_Scripting: fix trailing punctuation in markdown headers (MD026)
makes a lot of these headings consistent with other headings at the same level in these files!
2026-02-14 12:02:51 +11:00
Peter Barker 5630ed535b AP_Scripting: add type to code blocks
required by the linter, and allows renderers to do syntax highlighting
2026-02-12 19:31:55 +11:00
Peter Barker a402f8a882 AP_Scripting: correct MD001 in all markdown files (incorrect header levels) 2026-02-12 10:18:06 +11:00
Peter Barker b16a064207 AP_Scripting: fix MD041 (single # header at top of file) in all markdown 2026-02-12 10:18:06 +11:00
Iampete1 3b43db2e8d AP_Scripting: applets: plane package place: update Q_LAND_SPEED reference 2026-02-11 18:34:29 +11:00
Peter BarkerandClaude Opus 4.5 27be9675db AP_Scripting: convert bare URLs to proper markdown links
Fix MD034/no-bare-urls lint errors by converting bare URLs to proper
markdown link syntax [text](url). Link text is derived from the URL:
- GitHub repos use the repository name
- ArduPilot ecosystem URLs use descriptive names
- Vendor/product URLs use the vendor name
- Documentation sites include "documentation" suffix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-07 15:38:01 +11:00
Peter Barker 1ed95f7fc1 AP_Scripting: fix MD025 (too few # in headings) in all markdown files 2026-02-07 07:36:26 +11:00
Peter Barker 88029b0673 AP_Scripting: replace HTML <table> with markdown tables 2026-02-04 21:51:36 +11:00
Peter BarkerandClaude Opus 4.5 7ceb7c31c7 global: fix whitespace issues in markdown files
global: fix MD007 unordered list indentation in markdown files

Normalize unordered list indentation to use 2-space multiples:
- Top-level list items start at column 0
- Nested list items use 2 additional spaces per level

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

global: fix MD009 trailing whitespace in markdown files

Remove trailing whitespace from all affected markdown files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

global: fix MD010 hard tabs in markdown files

Replace hard tab characters with 4 spaces.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

global: fix MD012 multiple consecutive blank lines in markdown

Collapse multiple consecutive blank lines to single blank lines
across all markdown files (excluding vendored code).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

global: fix MD007 list indentation base level in markdown

Shift list indentation left by 2 spaces so top-level list items
start at column 0 instead of column 2.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD022 blank lines around headings in markdown

Ensure headings are surrounded by blank lines as required by
markdownlint MD022 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD032 blank lines around lists in markdown

Ensure lists are surrounded by blank lines as required by
markdownlint MD032 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD031 blank lines around code blocks in markdown

Ensure fenced code blocks are surrounded by blank lines as required
by markdownlint MD031 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD047 files should end with single newline

Ensure all markdown files end with exactly one newline character
as required by markdownlint MD047 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD023 headings must start at beginning of line

Remove leading whitespace from heading lines as required by
markdownlint MD023 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD007 remaining list indentation in markdown

Fix unordered list indentation to use correct spacing as required
by markdownlint MD007 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD030 spaces after list markers in markdown

Reduce multiple spaces after list markers to single space as
required by markdownlint MD030 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD022 blank lines around setext headings

Ensure setext-style headings (underlined with === or ---) are
surrounded by blank lines as required by markdownlint MD022 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD018 missing space after hash in headings

Add space after hash marks in atx-style headings as required by
markdownlint MD018 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD019 multiple spaces after hash in headings

Reduce multiple spaces after hash marks to single space in
atx-style headings as required by markdownlint MD019 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD012 multiple consecutive blank lines in markdown

Remove multiple consecutive blank lines and ensure files end with
exactly one newline as required by markdownlint MD012 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD023 headings with leading whitespace

Remove leading whitespace from setext-style heading text lines
as required by markdownlint MD023 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD022 blank line after heading in markdown

Add missing blank line after heading as required by markdownlint
MD022 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD009 trailing non-breaking space in markdown

Remove trailing non-breaking space (U+00A0) as required by
markdownlint MD009 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD012 remaining multiple blank lines in markdown

Remove leading blank lines and whitespace-only lines that create
multiple consecutive blank lines.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 11:37:38 +11:00
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