3757 Commits

Author SHA1 Message Date
Hamish Willee 087196e643 GLOBAL_POSITION_INT - move from common to standard (#2350) 2025-09-19 09:02:53 +10:00
Hamish Willee 2597bd3492 Modify firmware_version calculations (#2339) 2025-09-18 09:03:48 +10:00
ES-Alexander c748e54d9b common.xml: add gripper stop action (#2342)
* common.xml: add gripper stop action

Grippers are not always moving, and it can be beneficial to be able to stop the opening or closing process to avoid damaging the cargo and/or the device being controlled.

* common.xml: fix MAV_CMD_DO_GRIPPER min spec

Value "0" has a documented meaning, so it should be included in the values considered valid.

* Apply suggestions from code review

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2025-09-17 15:14:15 +10:00
Mathieu Bresciani 9fdcf82c43 Add MAV_CMD_EXTERNAL_ATTITUDE_ESTIMATE (#2334)
* add MAV_CMD_EXTERNAL_ATTITUDE_ESTIMATE

Allows external attitude or heading resets

* squash roll and pitch accuracy into tilt accuracy

This allows us to use the COMMAND_INT format
2025-08-23 06:31:00 +12:00
Julian Oes f9dbd8c496 C example fixup (#2333)
* udp_example: add missing include

* udp_example: return on error

Otherwise we set src_addr_set even though it's still unknown.
2025-08-14 14:33:16 +10:00
Nick E e261db27d1 common.xml: Add COASTING flag to CAMERA_TRACKING_STATUS_FLAGS (#2326) 2025-08-14 14:25:56 +10:00
Nick E 4f0efaaad9 common.xml: Add "Power On" action to MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN command (#2329)
* common.xml: Add enum for action in MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN

* common.xml: Add POWER_ON to REBOOT_SHUTDOWN_ACTION enum
2025-08-14 14:06:05 +10:00
vlad-serbanica 6a98757ce2 Add new component IDs for multiple radios (#2327)
* feat (minimal.xml): add new component IDs for multiple radios

* add new mav type radio
2025-08-14 11:04:48 +10:00
Nick E 2ca0cb55ae common.xml: Add commands, capability and flag for Moving Target Indicators (MTI) (#2323)
* common.xml: Add bitmask="true" to CAMERA_TRACKING_STATUS_FLAGS

* common.xml: Add capability and flag for Moving Target Indicators (MTI)

Currently marked as work-in-progress (WIP)

* development.xml: Add commands for Moving Target Indicators (MTI)

Currently marked as work-in-progress (WIP)
2025-08-14 09:53:52 +10:00
Christian Clauss 115f1c8364 Typos: Run codespell on all files (#2328)
* Typos: Run codespell on all files

[`codespell`](https://pypi.org/project/codespell/) passes all files, not just these four.

* Discover typos in all non-XML files and the four XML files that this repo controls

* Update test_and_deploy.yml
2025-08-14 09:23:19 +10:00
Mathieu Bresciani b27d03bffd Add GLOBAL_POSITION message (#2256)
* Add EXTERNAL_GLOBAL_POSITION message

* GLOBAL_POSITION: add velocity and heading fields

* GLOBAL_POSITION: split h and v speed accuracies

* Update message_definitions/v1.0/development.xml

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>

* Update message_definitions/v1.0/development.xml

* GLOBAL_POSITION: strip down to minimum required fields

And add source field

* GLOBAL_POSITION: add source enum

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>

* GLOBAL_POSITION: add flags field

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2025-08-06 18:33:33 +10:00
Hamish Willee ffecddebf7 Move AUTOPILOT_VERSION to standard.xml (#2306) 2025-08-06 14:15:40 +10:00
Peter Hall 8384e90845 common: AIS update and bug fixes (#2281) 2025-08-06 09:23:30 +10:00
Matthias Grob f459afd493 common: remove wip tag from MAV_CMD_DO_ORBIT and ORBIT_EXECUTION_STATUS (#2316)
These are in production use for 7 years now.
2025-07-30 18:15:59 +10:00
github-actions[bot] e9d76096eb ardupilotmega dialects from ArduPilot/mavlink: Wed Jul 30 02:32:07 UTC 2025 (#2322)
Co-authored-by: PX4BuildBot <bot@px4.io>
2025-07-30 12:56:53 +10:00
Andrew Voznytsa 994564208d Update Pymavlink to latest (#2321) 2025-07-30 11:16:23 +10:00
Balduin a367c1aa9e command: MAV_CMD_ACTUATOR_GROUP_TEST (#2224)
* development: add MAV_CMD_DO_PREFLIGHT_CS_CHECK

* update message definition

now we include axis and control input in the message.

* Update message_definitions/v1.0/development.xml

* development: format

* Address review

 - clearer command name
 - more explicit description of NACK
 - correct enum entry names

* Update message_definitions/v1.0/development.xml

* Reword according to review

* Generalization of command

* Update message_definitions/v1.0/development.xml

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2025-07-30 10:32:31 +10:00
Christian Clauss e7cdcf4b52 Fix ruff rules E711,E712,F841 (#2314)
* Fix ruff rules E711,E712,F841

* Remove unused re (_rex) and import

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2025-07-24 17:49:00 +10:00
Andrew Voznytsa e8e2d919b4 Rename BOOL to MAV_OPTION (#2317)
* rename BOOL to MAV_OPTION

* MAV_OPTION to MAV_BOOL

---------

Co-authored-by: PX4BuildBot <bot@pixhawk.org>
2025-07-23 12:01:18 +10:00
Christian Clauss 0bcf338f9c ruff check --select=E713,E714,F401,F541 —fix
% `ruff check --select=E713,E714,F401,F541 —statistics`
```
 3      E713    not-in-test
 2      F401    unused-import
 1      E714    not-is-test
 1      F541    f-string-missing-placeholders
```
% `ruff check --select=E713,E714,F401,F541 —fix`<2028>```
Found 7 errors (7 fixed, 0 remaining).
```
% `ruff rule E713`
2025-07-17 08:41:28 +10:00
Christian Clauss 1912f5f5ff GitHub Actions: Lint Python code with ruff 2025-07-16 18:23:27 +10:00
Marek S. Lukasiewicz b8af1bb254 Add MARSH dialect 2025-07-15 09:44:40 +10:00
Christian Clauss d01b4fbc87 mavgenerate.py: Remove support for Python 2 2025-07-10 09:18:40 +10:00
Christian Clauss 3db6daae2e Add codespell of four XML files to GitHub Actions 2025-07-10 09:11:41 +10:00
Hamish Willee 1fb5daac31 Update Pymavlink to latest 20050709 2025-07-09 11:09:31 +10:00
Christian Clauss 121bb73610 useless-semicolon: ruff check --select=E703 --fix 2025-07-09 10:46:08 +10:00
TedObrien 0f70d31948 fix: spelling mistake 2025-07-03 10:46:35 +10:00
Christian Clauss 77fc612f4f Fix typos discovered by codespell 2025-07-03 10:43:55 +10:00
Hamish Willee 5e27ca1add Fix errors and some flake8 crap 2025-07-03 10:36:40 +10:00
Hamish Willee c1f2807ff9 common.xml - fix up bad rendering of version fields 2025-07-03 10:36:40 +10:00
Christian Clauss 8e6345cb69 Remove useless object inheritance 2025-07-03 07:44:49 +10:00
Julian Oes 56782c7d56 development: remove SET_AT_S param
This is not happening, so I'm removing it again.
2025-07-02 14:17:33 +10:00
Hamish Willee 1196149748 Add BOOL enum for true/false cases 2025-07-02 14:12:56 +10:00
Christian Clauss d0c683f153 GitHub Actions: Test on LTS versions of Node.js and Python (#2296)
* https://github.com/actions/setup-node?tab=readme-ov-file#supported-version-syntax
* https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-the-python-version-input
2025-06-28 13:51:09 +12:00
Hamish Willee 6cf16a3eee Gripper - support discovery and addressing (#2287)
* minimal.xml - MAV_TYPE for Gripper

* common.xml - message and protocol

* Update message_definitions/v1.0/common.xml

* Format messages

---------

Co-authored-by: PX4BuildBot <bot@pixhawk.org>
2025-06-26 16:56:03 +10:00
dependabot[bot] fcfa6cc870 build(deps): bump the github-actions group with 3 updates (#2294)
Bumps the github-actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [actions/setup-python](https://github.com/actions/setup-python) and [actions/setup-node](https://github.com/actions/setup-node).


Updates `actions/checkout` from 2 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

Updates `actions/setup-python` from 2 to 5
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v5)

Updates `actions/setup-node` from 3 to 4
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-python
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-26 15:13:11 +10:00
Hamish Willee 32a1cd3c05 Fix camera information firmware version (#2295)
* CAMERA_INFORMATION.firmware_version - fix rendering of description

* CAMERA_INFORMATION.firmware_version - escape pipes
2025-06-26 11:46:58 +10:00
Christian Clauss 69614cebab Keep GitHub Actions up to date with GitHub's Dependabot (#2292)
* [Keeping your actions up to date with Dependabot](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot)
* [Configuration options for the dependabot.yml file - package-ecosystem](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem)
2025-06-26 10:36:59 +10:00
Peter Hall c27f4593be remove display="bitmask" (#2289)
* common: remove display="bitmask"

* storm32: remove display="bitmask"
2025-06-18 12:32:48 +10:00
Peter Hall a9d41b50bb common: DO_REPOSITION: support relative yaw (#2280) 2025-06-18 09:25:51 +10:00
Peter Hall 81c0901153 Replace MAV_MODE with MAV_MODE_FLAG. (#2195)
* Common: MAV_CMD: MAV_CMD_DO_SET_MODE: Replace MAV_MODE with MAV_MODE_FLAG.

* Update message_definitions/v1.0/common.xml

* update MAV_MODE to include info on MAV_MODE_FLAG used

* deprecate MAV_MODE

* minimal.xml - mav_mode_flag_custom_mode_enabled

* Update message_definitions/v1.0/minimal.xml

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2025-06-11 11:30:12 +10:00
Emmanuel Ferdman ebfa4609db Fix incorrect field name assignment from minValue to maxValue (#2284)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-06-09 07:14:50 +10:00
Hamish Willee 067abb83cd TRAJECTORY_REPRESENTATION_ - deprecated (#2225)
* TRAJECTORY_REPRESENTATION_ - deprecated

* Apply suggestions from code review
2025-05-29 14:07:54 +10:00
Marek S. Łukasiewicz 561ba28bed Document current recommendations for MAV_COMPONENT in its description. (#2279) 2025-05-29 13:43:51 +10:00
Ted c1f33242a0 add: gyrocopter/helicopter hybrid vehicle type (#2273)
* add:  gyrocopter helicopter hybrid vehicle type

* update: MAV_TYPE and description based on discussion
2025-05-28 09:31:51 +10:00
njdevi11 ea09563437 Add Generic 4 Legged Quadruped Rover (#2274)
* Add Generic 4 Legged Quadruped Rover

* change name to MAV_TYPE_GROUND_QUADRUPED

* Update message_definitions/v1.0/minimal.xml

---------

Co-authored-by: Devin Barillari <devibari@gmail.com>
Co-authored-by: Devin Barillari <barillari_devin@bah.com>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2025-05-22 10:46:07 +10:00
Hamish Willee bad2532fca common.xml-SYSTEM_TIME detail (#2269)
* common.xml-SYSTEM_TIME detail

* Update message_definitions/v1.0/common.xml

* Update message_definitions/v1.0/common.xml

* Update message_definitions/v1.0/common.xml

* Update message_definitions/v1.0/common.xml

* Apply suggestions from code review
2025-05-15 12:13:36 +10:00
Redon bedbb581c3 MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN use of param6 (#2258)
* MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN use of param6

This PR documents the existing behavior of param6 in MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN. While this parameter is already supported by multiple autopilot implementations, its intended values and behavior are currently not described in the MAVLink specification.

Specifically:
REBOOT_SHUTDOWN_ALLOWED: reboot only if allowed by safety checks
REBOOT_SHUTDOWN_FORCE: force reboot, bypassing all safety checks

* Rename enum and entries for MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN for clarity

Renamed the enum from PREFLIGHT_REBOOT_SHUTDOWN_FORCE to SHUTDOWN_REBOOT_OPTIONS, and updated entry names and descriptions to better reflect the command's behavior outside of preflight context.

Also updated the label and description for param6 to align with the new enum and improve clarity, as suggested in the review.

* Enum name changing to PREFLIGHT_REBOOT_SHUTDOWN_CONDITIONS

* Removing PREFLIGHT_ in enum name

* Update message_definitions/v1.0/common.xml

* INERLOCKED -> INTERLOCKED

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2025-05-10 19:41:15 +10:00
Hamish Willee fdacb2bf18 common.xml - ZOOM_TYPE, FOCUS_TYPE continuous (#2260)
* common.xml - ZOOM_TYPE, FOCUS_TYPE continuous

* Note values should be clipped to range
2025-05-08 10:29:16 +10:00
Julian Oes 4a7f6a4faa common: change unit of DO_REPOSITION yaw
I'm proposing to change the unit of DO_REPOSITION param4, which is used
for the yaw setpoint for multirotors.

Currently, the spec specifies degrees, however, PX4 implements it as
radians, and so does MAVSDK.

ArduPilot seems to ignore param4, so we should not be breaking anything.
2025-05-07 14:40:17 +02:00