#include <OS5000.h>
Public Member Functions | |
| OS5000 (char *DevicePath, int UpdateRate) | |
| ~OS5000 () | |
| Destructor. | |
| int | InitCompass () |
| Opens Compass Port. | |
| int | CheckCompass () |
| int | ResetCompass () |
| Attempts to reset compass port. | |
| int | GetInfo (CompassData *) |
| Get the state info from the compass. | |
Private Member Functions | |
| int | SetupPort (char *PortOpts) |
| int | ShutdownPort () |
| int | ConfigureCompass (int UpdateRate) |
Private Attributes | |
| char | PortOptions [128] |
| int | UpdateRate |
| flexiport::Port * | port |
| clock_t | LastReadTime |
| How long since last successful serial read. | |
| int | ErrorCount |
| OS5000::OS5000 | ( | char * | DevicePath, | |
| int | UpdateRate | |||
| ) |
Constructor Takes a device name and baudrate (Defaulted to 9600)
| OS5000::~OS5000 | ( | ) |
Destructor.
| int OS5000::InitCompass | ( | ) |
Opens Compass Port.
| int OS5000::CheckCompass | ( | ) |
Checks compass connectivity Returns 0 on success, -1 on error
| int OS5000::ResetCompass | ( | ) |
Attempts to reset compass port.
| int OS5000::GetInfo | ( | CompassData * | toreturn | ) |
Get the state info from the compass.
| int OS5000::SetupPort | ( | char * | PortOpts | ) | [private] |
| int OS5000::ShutdownPort | ( | ) | [private] |
| int OS5000::ConfigureCompass | ( | int | UpdateRate | ) | [private] |
char OS5000::PortOptions[128] [private] |
int OS5000::UpdateRate [private] |
flexiport::Port* OS5000::port [private] |
clock_t OS5000::LastReadTime [private] |
How long since last successful serial read.
int OS5000::ErrorCount [private] |
1.5.5