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
Diff: main.cpp
- Revision:
- 4:8dcf0bdc25c8
- Parent:
- 3:b3358ec2f57c
- Child:
- 5:ac633cdbb75c
--- a/main.cpp Thu May 23 20:24:19 2013 +0000 +++ b/main.cpp Fri May 24 12:47:22 2013 +0000 @@ -1,9 +1,11 @@ #include "mbed.h" -#include "SDFileSystem.h" +#include "SDFileSystem.h" // SD file system header from handbook/cookbook offical mbed library +#include "MODSERIAL.h" + //------------ system and interface setup ----------------------------// LocalFileSystem local("local"); // sets up local file on mbed -Serial pc(USBTX, USBRX); // sets up serial connection to pc terminal +MODSERIAL pc(USBTX, USBRX); // sets up serial connection to pc terminal //------------ Hardware setup ----------------------------------------// DigitalOut led1(LED1); // debug LED