A project similar to http://mbed.org/users/lhiggs/code/UM6_IMU_AHRS_2012/, where I'm trying to log data from a UM6 (CH Robotics orientation sensor) and a GPS transceiver to an sd card. I've adapted LHiggs code to include ModGPS. For sum reason a soon as I pick up a gps signal the UM6 data freezes i.e. the time and gps signals continue to print out but the UM6 signals fixes on a single value.
Dependencies: MODGPS MODSERIAL SDFileSystem mbed
main.cpp
- Committer:
- njewin
- Date:
- 2013-05-23
- Revision:
- 0:52295643d083
- Child:
- 1:9fe40d9ac0f5
File content as of revision 0:52295643d083:
#include "mbed.h" LocalFileSystem local("local"); // sets up local file on mbed Serial pc(USBTX, USBRX); // sets up serial connection to pc terminal DigitalOut myled(LED1); // debug LED DigitalIn enable(p10); // enable signal for logging data to file int main() { while(1) { if(enable==1) { myled=1; wait(0.2); myled=0; wait(0.2); } } }