mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Compass: example sketch displays in milligauss
This commit is contained in:
parent
d3066fcdad
commit
825abdbedc
@ -84,7 +84,7 @@ void loop()
|
|||||||
compass.learn_offsets();
|
compass.learn_offsets();
|
||||||
|
|
||||||
// capture min
|
// capture min
|
||||||
const Vector3f &mag = compass.get_field();
|
const Vector3f &mag = compass.get_field_milligauss();
|
||||||
if( mag.x < min[0] )
|
if( mag.x < min[0] )
|
||||||
min[0] = mag.x;
|
min[0] = mag.x;
|
||||||
if( mag.y < min[1] )
|
if( mag.y < min[1] )
|
||||||
|
Loading…
Reference in New Issue
Block a user