Skip to content

Pixhawk Telemetry Collection - #43

Merged
rpolishchuk3 merged 5 commits into
mainfrom
telemetry-collection
Nov 5, 2026
Merged

rpolishchuk3 merged 5 commits into
mainfrom
telemetry-collection

Conversation

@rpolishchuk3

@rpolishchuk3 rpolishchuk3 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Done so far:

  • A UAV identifier, string defined by bidder
  • Timestamp, in unix time
  • Latitude and longitude, in decimal degrees
  • Altitude AGL, in metres
  • Battery percentage, 0-100

In progress:

  • Horizontal and vertical position accuracy, in metres
  • Flight mode: one of off | idle | link-lost | failsafe | armed-pilot | armed-automatic
  • RC link status and telemetry link status, float 0-1 defined by the bidder with 1 representing best link quality.

@rpolishchuk3 rpolishchuk3 self-assigned this Oct 23, 2026
@rpolishchuk3 rpolishchuk3 linked an issue Oct 23, 2026 that may be closed by this pull request
5 of 8 tasks
FLIGHT_MODE_FAILSAFE = "failsafe"
FLIGHT_MODE_ARMED_PILOT = "armed-pilot"
FLIGHT_MODE_ARMED_AUTOMATIC = "armed-automatic"

@HameedFawwaz HameedFawwaz Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For the flight modes, they can be enumerated as follows:

"off" will be when the drone is powered off and not transmitting

"idle" will be when the drone is disarmed and safe. You can use motors_armed_wait() and motors_disarmed_wait() for this (see wait_vehicle_armed() in this file.

"link-lost": let's wait on this one, I have to look into this because it depends highly on the nature of our link. This also goes for the signal strength part as well.

"armed-pilot" this will be for the following flight modes:
Stabilize
Loiter
Alt-Hold
Acro

"armed-automatic" this will be for the following flight modes:
Guided
RTL (Return-To-Launch)
Land
Avoid-ADSB

You can find more information on ArduCopter Flight Modes Here:
https://ardupilot.org/copter/docs/flight-modes.html
https://mavlink.io/en/messages/common.html#MAV_MODE_FLAG

@HameedFawwaz

Copy link
Copy Markdown
Collaborator

For vertical and horizontal position accuracy, you can use h_acc and v_acc fields inside of GPS_RAW_INT to get those accuracy values. You can find more informaiton here: https://mavlink.io/en/messages/common.html#GPS_RAW_INT

The main requirement is that we need to run MAVLINK2 which we most likely are, it's just something that we should check during testing and configuration.

@rpolishchuk3

Copy link
Copy Markdown
Contributor Author

Summary

Finished every bullet point to Telemetry:

  • A UAV identifier, string defined by bidder
  • Timestamp, in unix time
  • Latitude and longitude, in decimal degrees
  • Altitude AGL, in metres
  • Battery percentage, 0-100
  • Horizontal and vertical position accuracy, in metres
  • Flight mode: one of off | idle | link-lost | failsafe | armed-pilot | armed-automatic
  • RC link status and telemetry link status, float 0-1 defined by the bidder with 1 representing best link quality.

@rpolishchuk3
rpolishchuk3 merged commit b3c957b into main Nov 5, 2026
2 checks passed
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.

Pixhawk Telemetry Collection

2 participants