Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
Diff: handle/handleCompass.h
- Revision:
- 10:c4745ddaaf6a
- Child:
- 44:2ae602b89961
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/handle/handleCompass.h Thu Apr 03 17:24:53 2014 +0000 @@ -0,0 +1,34 @@ +#ifndef _HANDLECOMPASS_H_ +#define _HANDLECOMPASS_H_ + +#include "adapt/compass.h" + +class compassHandle { +public: + /** + * \brief the last read compass heading + **/ + float heading; + + /** + * \brief constructor for the compass handle. Sets up the compass for reading. + **/ + compassHandle(); + + /** + * \brief sets up the compass for reading headings + **/ + void setup(); + + /** + * \brief gets an updated heading + **/ + void run(); +private: + /** + * \brief reference to the compass adaptor + **/ + Compass compass; +}; + +#endif \ No newline at end of file