Skip to content

[Bug] Battery fields contain -100 instead of -1 when field not set #27141

@av-remco

Description

@av-remco

Describe the bug

When running QGC v5.0.8 + PX4 SITL v1.16.1, the SITL reports SYS_STATUS.current_battery = -100, instead of the MAVLink spec -1. This is due to a scaling in PX4 that does not check whether the input is negative. Will make a small PR to fix this.

Flight Log / Additional Information

No response

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