84 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
deepak61296
ed2c34310c AP_Scripting: remove viewpro lua driver
C++ driver now handles ViewPro gimbals, lua version no longer needed
2025-12-26 08:17:45 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
73a62004e4 AP_Scripting: fix LTE_MCCMNC documentation metadata 2025-10-21 11:20:03 +02:00
Michael du Breuil
0f0a30bb94 AP_Scripting: Correct INF EFI temperatures
They were being reported as C, while the driver expects them to be in
Kelvin. This causes it to get sent to the GCS as the wrong unit.
Correcting the named value float pairs is not required as they are not a
part of a standard, so we can safely leave them in degrees C.
2025-10-21 11:42:34 +11:00
Bob Long
fbe0e49f0e AP_Scripting: fix UltraMotion servo mask bug
This script only worked if setting some N number of consecutive bits,
starting from the LSB. The # operator does NOT get the number of
elements in a table, unless that table is strictly an array.
2025-10-21 10:23:51 +11:00
Bob Long
194da2d257 AP_Scripting: fix UltraMotion docs 2025-10-21 10:23:51 +11:00
George Zogopoulos
6f188f5427 AP_Scripting: Added VSPeak Modell flow meter driver
Changest tested with Kyle

Updated script

Fixed documentation errors

Added VSPF_MODE

Fixed type casting

Added VSPF_PORT to choose serial port

Updated documentation

Fixed wrong handling of sensor mode

Some changes to hopefully get better data parsing

Fixed bugs
2025-10-02 08:34:54 +10:00
Andrew Tridgell
03494bd938 AP_Scripting: added pcall wrapper to LTE_modem 2025-08-31 17:05:52 +01:00
Andrew Tridgell
15d176cc88 AP_Scripting: fixed RSRQ/RSRP mixup 2025-08-31 17:05:52 +01:00
Andrew Tridgell
7d2f8a9190 AP_Scripting: LTE_modem reliability improvements 2025-08-31 17:05:52 +01:00
Andrew Tridgell
a080f62bd8 AP_Scripting: added LTE BG95 support
nice modem with good CAT-M support
2025-08-31 17:05:52 +01:00
Andrew Tridgell
318e6b9190 AP_Scripting: update HFE EFI driver script
added option to log all CAN frames for debugging new protocols
2025-07-22 13:02:52 +10:00
Andrew Tridgell
90700977c5 AP_Scripting: added EFI_DLA64 driver
new protocol for updated EFI engine from DLA
2025-07-21 20:43:33 +10:00
Andrew Tridgell
8bf182faf5 AP_Scripting: changed LTE_BAND and LTE_MCCMNC to no-change by default
avoid setting band and network if not wanted
2025-07-11 08:04:51 +10:00
Andrew Tridgell
d379de6f9c AP_Scripting: support mode modem chipsets in LTE_modem driver
support Air780, EC200 and SIM7070G
add escaping to CMUX data
improved logging
2025-07-09 18:24:24 +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
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
Andrew Tridgell
8cd83b8e64 AP_Scripting: LTE driver using SIM7600 AT commands
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
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
Libra-Foxtech
285369ed74 AP_Scripting: fixed Halo6000 checksum
for outgoing command packets
2025-03-15 07:31:44 +11:00
Randy Mackay
e4f26cd509 AP_Scripting: Torqeedo TorqLink lua driver
Co-authored-by: Shift-Ronan <88686667+Shift-Ronan@users.noreply.github.com>
2025-01-29 06:49:08 +11:00
Iampete1
0dbbb87ce2 AP_Scripting: fix remaining luacheck issues 2024-12-24 14:48:58 -06:00
Andrew Tridgell
10209a2a13 AP_Scripting: added UltraMotion servo driver 2024-11-28 09:24:03 +11:00
Andrew Tridgell
1c6ac0990c AP_Scripting: added UltraMotion servo driver
see https://www.ultramotion.com/servo-cylinder/
2024-11-28 09:24:03 +11:00
Thomas Watson
dd270dac2e AP_Scripting: mount-djirs2: increase bus/mount setup flexibility
In particular allows the use of the gimbal using PROTOCOL2 attached to a
DroneCAN bus. ArduPilot 4.6 is recommended due to the timeout bug causing
message sends to fail regularly on 4.5.

Tested also that misconfiguring the CAN bus will result in the driver
failing to start, though the error message will be less specific.
2024-11-08 10:47:41 +11:00
Thomas Watson
1f0dff0178 AP_Scripting: mount-djirs2: filter out ignored packets
Allows using a smaller buffer and simplifying the script logic.
2024-11-08 10:47:41 +11:00
Thomas Watson
afcc722995 AP_Scripting: mount-djirs2: re-enable lua checks and fix issues 2024-11-08 10:47:41 +11:00
Andrew Tridgell
cbba88fccd AP_Scripting: added 2nd supply voltage to SkyPower EFI driver
and accept both extended and 11-bit CAN
2024-09-14 09:24:03 +10:00
Andrew Tridgell
842a4f507b AP_Scripting: added NMEA 2000 EFI driver
this has been tested on a marine engine, and correctly produces key
telemetry data

the NMEA_2000.lua module is broken out to make it easier to add other
NMEA 2000 based drivers
2024-07-06 07:19:25 +10:00
Andrew Tridgell
32750476be AP_Scripting: added more telemetry for INF Inject 2024-06-25 09:34:18 +10:00
Andrew Tridgell
b108d9cf09 AP_Scripting: added throttle and ignition control for INF_INject
allows full control over serial
2024-06-25 09:34:18 +10:00
Andrew Tridgell
c783f632c1 AP_Scription: added CANF logging to Halo6000 EFI driver
allows for easier debugging
2024-06-09 08:37:44 +10:00
Iampete1
5bb5f442e1 AP_Scripting: ignore lua-language-server-errors 2024-05-21 09:42:22 +10:00
Andrew Tridgell
e2767f899f AP_Scripting: allow for 0x00 for 2nd checksum byte in INF_Inject driver
the device does send 0x00 sometimes and data is valid
2024-05-04 07:43:39 +10:00
Andrew Tridgell
c628e31c0a AP_Scripting: fixed crc and added logging to INF_Inject driver 2024-05-02 12:17:49 +10:00
Andrew Tridgell
1cafe25854 AP_Scripting: improve INF inject driver
make it more robust to serial errors, and support correct checksum
2024-04-14 07:19:40 +10:00
Andrew Tridgell
098277ce6a AP_Scripting: added ANX CAN battery driver 2024-01-09 07:53:59 +11:00
Andrew Tridgell
8732f582c3 AP_Scripting: update SkyPower driver to support new model
support SP-275 dual-cylinder ECU
2023-12-17 14:14:20 +11:00
Randy Mackay
56a2474e1c AP_Scripting: djirs2 reply timeout reduced to 0.1 sec 2023-12-13 18:16:11 +11:00
Thomas Watson
95033b2ef5 AP_Scripting: mount-djirs2 yaw angle reporting fix 2023-12-13 18:16:11 +11:00
Randy Mackay
b507075701 AP_Scripting: mount-djir2 handles both legacy and latest ver 2023-12-13 18:16:11 +11:00
Thomas Watson
c6c41cb609 AP_Scripting: mount-djirs2: fix parsing for latest firmware
DJI R SDK version 2.2.0.5 released on October 30, 2020 added CmdSet and
CmdID bytes to reply frames before the data segment which need to be
skipped when parsing replies.

Tested with gimbal firmware 01.04.00.20 and 01.05.00.20 (latest version).
2023-12-13 18:16:11 +11:00
Andrew Tridgell
c1831bae32 AP_Scripting: added HobbyWing DataLink lua driver 2023-11-06 07:12:35 +11:00
Andrew Tridgell
96f7cc2d38 AP_Scripting: added SVFFI generator support 2023-10-18 09:01:57 +11:00
Andrew Tridgell
020807a064 AP_Scripting: added INF_Inject EFI driver 2023-10-04 18:29:10 +11:00
Andrew Tridgell
4ca2277f1a AP_Scripting: added logging to EFI_Halo6000.lua driver
allows for log analysis of current/voltage
2023-09-30 17:15:36 +10:00