read acceleration and angler ratio from mpu6050 and estimate pitch and roll angle

Dependencies:   mbed

ErrorLogger.cpp

Committer:
ojan
Date:
2015-05-13
Revision:
3:40559ebef0f1
Parent:
1:2eca9b376580

File content as of revision 3:40559ebef0f1:

#include "ErrorLogger.h"

void InitLogger(Serial* dp) {
    if(debugPort == dp) return;
    debugPort = dp;
}

void AbortWithMsg(const char* msg) {
    debugPort->printf(msg);
    abort();
}