read acceleration and angler ratio from mpu6050 and estimate pitch and roll angle
Dependencies: mbed
ErrorLogger.cpp@1:2eca9b376580, 2015-04-16 (annotated)
- Committer:
- ojan
- Date:
- Thu Apr 16 08:51:04 2015 +0000
- Revision:
- 1:2eca9b376580
???????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ojan | 1:2eca9b376580 | 1 | #include "ErrorLogger.h" |
ojan | 1:2eca9b376580 | 2 | |
ojan | 1:2eca9b376580 | 3 | void InitLogger(Serial* dp) { |
ojan | 1:2eca9b376580 | 4 | if(debugPort == dp) return; |
ojan | 1:2eca9b376580 | 5 | debugPort = dp; |
ojan | 1:2eca9b376580 | 6 | } |
ojan | 1:2eca9b376580 | 7 | |
ojan | 1:2eca9b376580 | 8 | void AbortWithMsg(const char* msg) { |
ojan | 1:2eca9b376580 | 9 | debugPort->printf(msg); |
ojan | 1:2eca9b376580 | 10 | abort(); |
ojan | 1:2eca9b376580 | 11 | } |