Skip to content

fix(python): type magnetometer covariance as list#9806

Open
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/python-magnetometer-covariance-list-20260723
Open

fix(python): type magnetometer covariance as list#9806
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/python-magnetometer-covariance-list-20260723

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

Default MagnetometerData.magnetic_field_covariance to a list so the Python field shape matches C++ vector<real_T> (3×3 / 9 elements) instead of a misleading 0.0 float.

Motivation

msgpack decode/encode and typed consumers expect a sequence of covariances; a float default diverges from MagnetometerBase::Output.

Verification

  • PythonClient/airsim/tests/test_magnetometer_covariance.py covers default type and from_msgpack list of 9.

AI-assisted; human-reviewed.

Claim: bartok
Operator: bartok
Campaign: aerial-drone

Match C++ MagnetometerBase::Output vector<real_T> (3x3) instead of a
float default that misrepresents the msgpack field shape.

Signed-off-by: Bartok9 <danielrpike9@gmail.com>
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.

1 participant