mpu9250 test command use correct mag units (#8313)

This commit is contained in:
makekam 2017-11-19 00:54:35 +08:00 committed by Daniel Agar
parent 7608cec1ed
commit 3c252d973d
1 changed files with 3 additions and 3 deletions

View File

@ -370,9 +370,9 @@ test(enum MPU9250_BUS busid)
err(1, "immediate mag read failed");
}
warnx("mag x: \t% 9.5f\trad/s", (double)m_report.x);
warnx("mag y: \t% 9.5f\trad/s", (double)m_report.y);
warnx("mag z: \t% 9.5f\trad/s", (double)m_report.z);
warnx("mag x: \t% 9.5f\tGa", (double)m_report.x);
warnx("mag y: \t% 9.5f\tGa", (double)m_report.y);
warnx("mag z: \t% 9.5f\tGa", (double)m_report.z);
warnx("mag x: \t%d\traw", (int)m_report.x_raw);
warnx("mag y: \t%d\traw", (int)m_report.y_raw);
warnx("mag z: \t%d\traw", (int)m_report.z_raw);