First draft HMC5883 magnetometer sensor using physical quantities, outputting via serial port using std::cout on mbed os 5

Revision:
5:47026facc081
Parent:
4:53e468c49c17
Child:
6:cc08f2d64773
--- a/main.cpp	Tue Mar 24 23:21:11 2020 +0000
+++ b/main.cpp	Tue Mar 24 23:29:42 2020 +0000
@@ -47,7 +47,7 @@
         loop_forever("Failed to detect HMC5883");
     }
 
-    // N.b after offsets removed mag was reading around 33.6 uT, so not bad!
+    // N.b after offsets removed mag was reading around 34.49 uT, so not bad!
     constexpr auto earth_magnetic_field_flux_density = 31.869_uT;
     bool const success =
         mag_set_samples_average(8) &&
@@ -63,9 +63,7 @@
     > offsets{7.96466_uT,-8.10162_uT,1.50555_uT};
      
     mag_adjusted_values(20_ms,offsets);
-    
    // mag_raw_values(20_ms);
-    
    // mag_offset_calibrate();
     
 }
\ No newline at end of file