ArduPilot / ArduPilot/ardupilot

MAVLink channel numbering inconsistent

Open
#33,666 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
15.9k
Forks
21.4k
Avg merge
3d 17h
Merged PRs (30d)
119

Description

## Bug Report

### Issue details

message-interval-chanX.txt uses 0 based indexing
MAVx_* (former SRx) uses 1 based indexing
SERIALx_* uses 0 based indexing (with 1 based indexing exposed)

different numbering schemes and hiding SERIAL0 (USB) configuration leads to confusion when configuring mavlink channels.

I would like to propose to shift MAVx to 0 based indexing with note that 0th channel is USB port. This way numbering will be consistent between parameters and configuration files, additionally mission planner Setup -> Serial ports will appear to have consistent 1 based numbering.

**Version**
Any

**Platform**
[x] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine

**Airframe type**
Any

**Hardware type**
Any

**Logs**
Not applicable

Contributor guide

Open the contributing guide

Research direction

Review the numbering used by message-interval-chanX.txt, MAVx_* parameters, and SERIALx_* parameters, then inspect the Mission Planner Setup → Serial ports presentation. Define how the USB port and channel indexes should align across these interfaces; done means the parameter and configuration-file numbering is consistent and the exposed serial-port numbering remains clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, robotics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.