Skip to content

Pixhawk6X: emit 1Hz “hello world” STATUSTEXT and add targeted CI workflow - #5

Draft
huangfuluya with Copilot wants to merge 2 commits into
Copter-4.5from
copilot/add-hello-world-signal
Draft

Pixhawk6X: emit 1Hz “hello world” STATUSTEXT and add targeted CI workflow#5
huangfuluya with Copilot wants to merge 2 commits into
Copter-4.5from
copilot/add-hello-world-signal

Conversation

Copilot AI commented Apr 10, 2026

Copy link
Copy Markdown

This PR adds a Pixhawk6X-specific periodic GCS message so the flight controller sends hello world once per second. It also introduces a dedicated GitHub Actions workflow to automatically build the Pixhawk6X target for these changes.

  • 1Hz GCS message on Pixhawk6X

    • Updated AP_Vehicle::one_Hz_update() to send STATUSTEXT at 1Hz only when building for Pixhawk6X (APJ_BOARD_ID == 53).
    • Scope is compile-time gated to avoid affecting other boards.
  • New Pixhawk6X workflow

    • Added .github/workflows/test_pixhawk6x_hello.yml.
    • Triggers on push, pull_request, and workflow_dispatch, scoped to:
      • libraries/AP_Vehicle/**
      • .github/workflows/test_pixhawk6x_hello.yml
    • Builds ArduCopter for Pixhawk6X via ./waf configure --board Pixhawk6X + ./waf copter.
    • Uses least-privilege workflow token permissions (contents: read).
void AP_Vehicle::one_Hz_update(void)
{
    one_Hz_counter++;

#if defined(APJ_BOARD_ID) && (APJ_BOARD_ID == 53) && HAL_GCS_ENABLED
    GCS_SEND_TEXT(MAV_SEVERITY_INFO, "hello world");
#endif
    ...
}

Copilot AI and others added 2 commits April 10, 2026 08:07
Agent-Logs-Url: https://github.com/huangfuluya/ardupilot/sessions/dabb3f6f-75ad-438f-8c56-41811a3f329a

Co-authored-by: huangfuluya <47851080+huangfuluya@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants