read acceleration and angler ratio from mpu6050 and estimate pitch and roll angle
Dependencies: mbed
Diff: ErrorLogger.cpp
- Revision:
- 1:2eca9b376580
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ErrorLogger.cpp Thu Apr 16 08:51:04 2015 +0000 @@ -0,0 +1,11 @@ +#include "ErrorLogger.h" + +void InitLogger(Serial* dp) { + if(debugPort == dp) return; + debugPort = dp; +} + +void AbortWithMsg(const char* msg) { + debugPort->printf(msg); + abort(); +} \ No newline at end of file