246 Commits

Author SHA1 Message Date
Peter Barker
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
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 Rage
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 Barker
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 2025-02-27 11:39:56 +11:00