HiTechnic Gyro sensor (http://www.hitechnic.com/) class.
More...
#include <GyroSensor.h>
List of all members.
Public Member Functions |
| GyroSensor (ePortS port) |
| Constructor.
|
void | setOffset (S16 offset) |
| Set gyro sensor offset.
|
S16 | getAnglerVelocity (void) const |
| Get angler velocity.
|
S16 | get (void) const |
| Get raw A/D value.
|
Static Public Attributes |
static const S16 | DEFAULT_OFFSET = 605 |
| Default gyro sensor offset value.
|
Protected Member Functions |
ePortS | getPort (void) const |
| Get the sensor connected port.
|
Detailed Description
HiTechnic Gyro sensor (http://www.hitechnic.com/) class.
Constructor & Destructor Documentation
Constructor.
Note:
This class must be constructed as a global object. Otherwise, a device assertion will be displayed
in the LCD when the object is constructed as a non global object.
When the object is destructed while the system is shut down, the device is de-activated automatically.
- Parameters:
-
port | Gyro sensor connected port |
- Returns:
- -
Member Function Documentation
Get raw A/D value.
- Parameters:
-
- Returns:
- raw A/D value (0 to 1023)
Get angler velocity.
- Parameters:
-
- Returns:
- Angler velocity [deg/sec]
Get the sensor connected port.
- Parameters:
-
- Returns:
- Sensor connected port
Set gyro sensor offset.
- Parameters:
-
offset | Offset value (The sensor value at 0[deg/sec]) |
- Returns:
- -
The documentation for this class was generated from the following file: