QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

handle/handleCompass.h

Committer:
krobertson
Date:
2014-04-03
Revision:
17:323fc40376d5
Child:
44:2ae602b89961

File content as of revision 17:323fc40376d5:

#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