![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test program testing ArduIMU Library
Revision 0:ad6a9dab3b2b, committed 2014-03-24
- Comitter:
- ifwui
- Date:
- Mon Mar 24 20:32:29 2014 +0000
- Commit message:
- Initial Commit
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ArduIMULib.lib Mon Mar 24 20:32:29 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/ifwui/code/ArduIMULib/#d0d40a6fe11c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 24 20:32:29 2014 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include "Arduimu.h" +#include <sstream> + +Serial pc(USBTX, USBRX); // tx, rx +Arduimu device(p9, p10); // tx, rx + +int main() +{ + std::stringstream s; + pc.printf("Starting\r\n"); + while(1) { + // device.receive(); + s << "Got data: (" << device.getRoll() << "," << device.getPitch() << "," << device.getYaw() << ")"; + pc.printf("%s\r\n",s.str()); + s.str(""); + wait(.2); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 24 20:32:29 2014 +0000 @@ -0,0 +1,1 @@ +http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43 \ No newline at end of file