Skip to content

APM: fix uavcan compass name#12867

Merged
DonLakeFlyer merged 1 commit intomasterfrom
pr-apm_fix_uavcan_compass
May 17, 2025
Merged

APM: fix uavcan compass name#12867
DonLakeFlyer merged 1 commit intomasterfrom
pr-apm_fix_uavcan_compass

Conversation

@dakejahl
Copy link
Collaborator

busType is a string, so the existing logic has never worked. This bug resulted in the compass being reported as

HMC5883_OLD(UAVCAN0)

With the fixed logic it is now

UAVCAN(UAVCAN0)

The DroneCAN MagneticFieldStrength2 message only has a uint8 id which is used for sensor instance reporting. There is no mechanism to report device type of the magnetometer sensor (eg ii2smdc, hmc5883, etc)

@dakejahl dakejahl changed the title fix uavcan compass name APM: fix uavcan compass name May 16, 2025
@DonLakeFlyer
Copy link
Collaborator

Hmm, never seen this code before. I assume if you tested then it should be all good now.

@DonLakeFlyer DonLakeFlyer merged commit 316f487 into master May 17, 2025
16 checks passed
@DonLakeFlyer DonLakeFlyer deleted the pr-apm_fix_uavcan_compass branch May 17, 2025 00:15
@dakejahl
Copy link
Collaborator Author

Yup I tested. It's only a thing with ardupilot but shows you on the vehicle page which sensors are on the board. Kinda cool, I was thinking about adding something like it for PX4

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.

2 participants