Skip to content

MAVLink BATTERY_STATUS is decoded incorrectly #424

@tpwrules

Description

@tpwrules

On the attached log file from a recent development build of ArduPilot, the BATTERY_STATUS message is decoded and displayed incorrectly in the log viewer. The file was captured with QGroundControl.

It shows the id field as a constant NaN and the current_battery field as a constant 65535. Other fields within that message and other messages seem to decode properly but I didn't search thoroughly for problems. All the messages look fine and the fields change how I expect when decoding with pymavlink. The SYS_STATUS messages also have the correct battery values.

2024-12-07 12-44-46.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions