Now you can download a copy of these docs so you can use them offline! Download now
HiTechnicCompass Class Reference
#include <HiTechnicCompass.h>
Inheritance diagram for HiTechnicCompass:

Collaboration diagram for HiTechnicCompass:

Public Member Functions | |
| HiTechnicCompass (UINT8 moduleNumber) | |
| virtual | ~HiTechnicCompass () |
| float | GetAngle () |
Detailed Description
HiTechnic NXT Compass.
This class alows access to a HiTechnic NXT Compass on an I2C bus. These sensors to not allow changing addresses so you cannot have more than one on a single bus.
Details on the sensor can be found here: http://www.hitechnic.com/index.html?lang=en-us&target=d17.html
- Todo:
- Implement a calibration method for the sensor.
Definition at line 26 of file HiTechnicCompass.h.
Constructor & Destructor Documentation
| HiTechnicCompass::HiTechnicCompass | ( | UINT8 | moduleNumber | ) | [explicit] |
Constructor.
- Parameters:
-
moduleNumber The digital module that the sensor is plugged into (1 or 2).
Definition at line 24 of file HiTechnicCompass.cpp.
| HiTechnicCompass::~HiTechnicCompass | ( | ) | [virtual] |
Destructor.
Definition at line 50 of file HiTechnicCompass.cpp.
Member Function Documentation
| float HiTechnicCompass::GetAngle | ( | void | ) |
Get the compass angle in degrees.
The resolution of this reading is 1 degree.
- Returns:
- Angle of the compass in degrees.
Definition at line 63 of file HiTechnicCompass.cpp.
The documentation for this class was generated from the following files:
Generated on Thu Jan 12 2012 22:35:32 for WPILibC++ by
1.7.1