Skip to content

common: sync ONBOARD_COMPUTER_STATUS (id=390) from upstream mavlink/mavlink #499

Merged
peterbarker merged 1 commit intoArduPilot:masterfrom
marifante:feature/include-onboard-computer-status
Apr 16, 2026
Merged

common: sync ONBOARD_COMPUTER_STATUS (id=390) from upstream mavlink/mavlink #499
peterbarker merged 1 commit intoArduPilot:masterfrom
marifante:feature/include-onboard-computer-status

Conversation

@marifante
Copy link
Copy Markdown

@marifante marifante commented Apr 14, 2026

Summary

ONBOARD_COMPUTER_STATUS (id=390) was added to the upstream mavlink/mavlink common.xml in August 2019 via PR mavlink#1186 and has been part of the standard library ever since, including the auto-generated C library (mavlink_msg_onboard_computer_status.h in mavlink/c_library_v2).

The ArduPilot/mavlink fork has not yet synced this message. As a result, ArduPilot builds its CRC_EXTRA map and routing table at compile time with no entry for id=390. Any incoming MAVLink2 frame with that ID is silently rejected at the routing layer — even when sent by a legitimate companion computer on the same vehicle over a trusted serial link. There is no log entry and no NAK; the frame is simply dropped.

See this issue: ArduPilot/ardupilot#32777

Changes

message_definitions/v1.0/common.xml: add COMPUTER_STATUS_FLAGS bitmask enum and ONBOARD_COMPUTER_STATUS message block, copied verbatim from upstream mavlink/mavlink at current HEAD. Insertion point preserves numeric ordering (after id=388, before the existing Rover-specific block at id=9000).

Notes

  • Pure sync of an existing standard message. No new design decisions.
  • The <extensions/> marker and status_flags field are part of the canonical upstream definition and are included unchanged.
  • A companion PR to ArduPilot/ardupilot bumps the modules/mavlink submodule pointer to this commit.

Copy link
Copy Markdown

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to be strict here, but I am trying to make our common.xml identical to mavlink/mavlink/master so we can stay in sync more easily.

Comment thread message_definitions/v1.0/common.xml Outdated
Comment thread message_definitions/v1.0/common.xml Outdated
@marifante marifante requested a review from peterbarker April 14, 2026 06:13
Copy link
Copy Markdown

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for missing this on my first pass.

Comment thread message_definitions/v1.0/common.xml
@marifante
Copy link
Copy Markdown
Author

Apologies for missing this on my first pass.

No worries!

@peterbarker
Copy link
Copy Markdown

Incidentally.... you can set a bit MAVn_OPTIONS in 4.7 to pass through unknown messages. Mixed reports of it working.

@marifante
Copy link
Copy Markdown
Author

Incidentally.... you can set a bit MAVn_OPTIONS in 4.7 to pass through unknown messages. Mixed reports of it working.

that will be helpful as a workaround in the meantime hehehe

…avlink

ONBOARD_COMPUTER_STATUS was added to mavlink/mavlink in August 2019
(PR mavlink#1186) and has been part of the standard common.xml ever since.
This commit syncs it into ArduPilot/mavlink so that ArduPilot builds
its CRC_EXTRA map with knowledge of message ID 390, enabling it to
validate and route frames sent by companion computers instead of
silently dropping them.

Also adds the COMPUTER_STATUS_FLAGS bitmask enum referenced by the
status_flags extension field.
@peterbarker peterbarker force-pushed the feature/include-onboard-computer-status branch from 26ac12f to 9e55375 Compare April 15, 2026 06:17
Copy link
Copy Markdown

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've fixed the commit list.

@peterbarker peterbarker merged commit 6ed4795 into ArduPilot:master Apr 16, 2026
12 checks passed
@peterbarker
Copy link
Copy Markdown

Merged this - ta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants