First draft HMC5883 magnetometer sensor using physical quantities, outputting via serial port using std::cout on mbed os 5
Diff: magnetometer.cpp
- Revision:
- 11:de7c9ae7ef65
- Parent:
- 10:75c8ce89aeb7
--- a/magnetometer.cpp Thu Mar 26 21:59:18 2020 +0000 +++ b/magnetometer.cpp Thu Mar 26 22:58:21 2020 +0000 @@ -10,7 +10,7 @@ bool mag_init() { -// if startup, allow magnetometer hardware time to start + // if startup, allow magnetometer hardware time to start if ( Kernel::get_ms_count() < 500U){ ThisThread::sleep_until(500U); }