Unit testing and development for 9DOF sparkfun sensor stick

Dependencies:   ADXL345 HMC5883L ITG3200 mbed

Revision:
4:8a77e21d08f1
Parent:
3:5e21a352e236
--- a/adxl345unit.cpp	Mon Nov 05 18:35:42 2012 +0000
+++ b/adxl345unit.cpp	Tue Nov 06 19:06:58 2012 +0000
@@ -188,14 +188,14 @@
     open_file_ = 0;
 }
 
-bool ADXL345UNIT::methodTest()
-{
+//void ADXL345UNIT::sampleTimeTest()
+//{
     // constructors and size of obj tests
     // destructor test
     // get device id [0xE5]
     // set power mode > get bw rate
     //
-}
+//}
 
 int16_t ADXL345UNIT::arr_avg(int16_t* arr,int16_t length)
 {
@@ -212,7 +212,7 @@
     for(int sample = 0; sample < 100; sample++) {
         start_time = t->read();
 
-        adxl345_.getOutput(buffer[sample]);
+        adxl345_.getXYZ(buffer[sample]);
 
         wait(period - (start_time - t->read()));
     }