pymavlink icon indicating copy to clipboard operation
pymavlink copied to clipboard

XSD: Remove display attribute from fields

Open hamishwillee opened this issue 8 months ago • 6 comments

This removes the XSD to allow display="bitmask" on a field. We now expect the bitmask attribute to be set on the enum itself.

The trigger for this was the accidental reintroduction of the attribute in https://github.com/mavlink/mavlink/pull/2289/

My concern about this is that it might break other systems that aren't directly managed by MAVLink org.

hamishwillee avatar Jun 17 '25 23:06 hamishwillee

@peterbarker This works upstream, but we need get rid of the last instances here.

But, the question stands, what about other dialects that don't talk to this project?

hamishwillee avatar Jun 18 '25 08:06 hamishwillee

@peterbarker This is failing because the pymavlink repo still has a version of common that includes display="bitmap" in fields. These were purged upstream. I thought had been removed in ardupilot/mavlink. IFF that's the case, I think ArduPilot/pymavlink needs to update from ArduPilot/mavlink - right?

hamishwillee avatar Oct 01 '25 06:10 hamishwillee

On Tue, 30 Sep 2025, Hamish Willee wrote:

@peterbarker This is failing because the pymavlink repo still has a version of common that includes display="bitmap" in fields. These were purged upstream. I thought had been removed in ardupilot/mavlink. IFF that's the case, I think ArduPilot/pymavlink needs to update from ArduPilot/mavlink - right?

pymavlink doesn't reference mavlink. It's actually the other way around...

Perhaps a pymavlink release is required to fix the problem - where's your pymavlink coming from?

peterbarker avatar Oct 01 '25 10:10 peterbarker

On Tue, 30 Sep 2025, Hamish Willee wrote: @peterbarker This is failing because the pymavlink repo still has a version of common that includes display="bitmap" in fields. These were purged upstream. I thought had been removed in ardupilot/mavlink. IFF that's the case, I think ArduPilot/pymavlink needs to update from ArduPilot/mavlink - right?

pymavlink doesn't reference mavlink. It's actually the other way around... Perhaps a pymavlink release is required to fix the problem - where's your pymavlink coming from?

I'm not sure what you mean. This repo is failing its tests. If it's taking mavlink/mavlink then it shouldn't.

Can you confirm that it is taking the latest mavlink/mavlink - if so then yes, it is my problem to fix. Sorry!

hamishwillee avatar Oct 01 '25 11:10 hamishwillee

I'm not sure what you mean. This repo is failing its tests. If it's taking mavlink/mavlink then it shouldn't.

image

.... so that's pretty clear.... do we need to pull patches back into ardupilot/mavlink to fix these attributes? Do we have a PR?

Notionally we could check against both repositories.

peterbarker avatar Oct 02 '25 00:10 peterbarker

Notionally we could check against both repositories.

I thought we'd fixed all these in ardupilot/mavlink. Perhaps some crept in. We'll need a new PR I guess.

hamishwillee avatar Oct 02 '25 00:10 hamishwillee