Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of dgps by
handle/handleCompass.h
- Committer:
- krobertson
- Date:
- 2014-04-03
- Revision:
- 10:c4745ddaaf6a
- Child:
- 44:2ae602b89961
File content as of revision 10:c4745ddaaf6a:
#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
