Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output unit of magnetic field #13

Open
versatran01 opened this issue Aug 10, 2015 · 3 comments
Open

Output unit of magnetic field #13

versatran01 opened this issue Aug 10, 2015 · 3 comments

Comments

@versatran01
Copy link
Collaborator

ROS MagneticField message defines its output in Tesla.
http://docs.ros.org/jade/api/sensor_msgs/html/msg/MagneticField.html
3dm-gx4 measures magnetic filed in Gauss and the driver outputs is thus in Gauss
http://www.microstrain.com/inertial/3dm-gx4-25

The conversion between tesla and gauss is 1 Tesla = 10000 Gauss
This inconsistency is not very well documented and thus may cause confusion.

We could

  1. fix the output to Tesla, thus the output will typically range from 0 to 0.00005 Tesla, which is numerically unfavorable.
  2. keep using gauss, which contradicts with the ros definition, but we could document it in readme. Output will range from 0 to 0.5 Gauss.
@versatran01
Copy link
Collaborator Author

@mike-watterson-ai
Copy link
Contributor

I would suggest doing number 1. Floating point numbers are stored in scientific notation, so having typical measurements that small will not inherently cause numeric issues.

Numeric conditioning errors come from adding or subtracting numbers of vastly different scales. Ex. (1e10 + 1e-10 - 1e10) = 0 is incorrect, but (1e-10 + 1e-10) = 2e-10 is fine.

@versatran01
Copy link
Collaborator Author

Sounds good. I will change it to Tesla then.

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

No branches or pull requests

2 participants