NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
Diff: Sensors/Acc/ADXL345.h
- Revision:
- 11:9bf69bc6df45
- Parent:
- 10:953afcbcebfc
- Child:
- 17:e096e85f6c36
diff -r 953afcbcebfc -r 9bf69bc6df45 Sensors/Acc/ADXL345.h --- a/Sensors/Acc/ADXL345.h Wed Oct 17 08:37:08 2012 +0000 +++ b/Sensors/Acc/ADXL345.h Thu Oct 18 20:04:16 2012 +0000 @@ -78,10 +78,10 @@ private: I2C i2c; // i2c object to communicate - int writeReg(byte reg, byte value); // write one single register to sensor + void writeReg(byte reg, byte value); // write one single register to sensor byte readReg(byte reg); // read one single register from sensor void readMultiReg(char startAddress, char* ptr_output, int size); // read multiple regs - int setDataRate(char rate); // data rate configuration (not only a reg to write) + void setDataRate(char rate); // data rate configuration (not only a reg to write) }; #endif