Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
Diff: handle/handleCompass.cpp
- Revision:
- 10:c4745ddaaf6a
- Child:
- 44:2ae602b89961
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/handle/handleCompass.cpp Thu Apr 03 17:24:53 2014 +0000 @@ -0,0 +1,16 @@ +#include "handleCompass.h" + +compassHandle::compassHandle(){ + heading = 0; + setup(); +} + +void compassHandle::setup(){ + compass.init(); + compass.enableDefault(); +} + +void compassHandle::run(){ + compass.read(); + heading = compass.get_heading(); +} \ No newline at end of file