#include <Compass.h>
Public Member Functions | |
bool | initialize () |
int | getHeading () |
Static Public Member Functions | |
Compass * | getCompass () |
Protected Member Functions | |
Compass () | |
~Compass () | |
bool | release () |
Static Private Attributes | |
Compass | compasses [NUMBER_OF_ROBOTS] |
|
|
|
|
|
This method is used to get the instance of this singleton class
|
|
This method is used to get the heading of the robot in degree (between 0 and 359)
|
|
Initializes the compass for usage. Should automatically be called by the constructor. But as the EyeSim simulator is not able to execute RoBIOS library functions in class constructors, we have declared this method as public and need to call this method manually in main
|
|
Releases the compass after usage. Is automatically called by the destructor
|
|
The single instance that exists of this class
|