Detailed Description
HiTechnic Gyroscopic Sensor
Function Documentation
int HTGYROreadCal |
( |
tSensors |
link ) |
|
Retrieve the current offset for the gyro
- Parameters:
-
muxsensor | the SMUX sensor port number |
- Returns:
- the offset value for the gyro
Definition at line 183 of file HTGYRO-driver.h.
Read the value of the gyro
- Parameters:
-
muxsensor | the SMUX sensor port number |
- Returns:
- the value of the gyro
Definition at line 87 of file HTGYRO-driver.h.
int HTGYROreadRot |
( |
tSensors |
link ) |
|
void HTGYROsetCal |
( |
tSensors |
link, |
|
|
int |
offset |
|
) |
| |
Override the current offset for the gyro manually
- Parameters:
-
link | the HTGYRO port number |
offset | the new offset to be used |
Definition at line 150 of file HTGYRO-driver.h.
void HTGYROsetCal |
( |
tMUXSensor |
muxsensor, |
|
|
int |
offset |
|
) |
| |
Override the current offset for the gyro manually
- Parameters:
-
muxsensor | the SMUX sensor port number |
offset | the new offset to be used |
Definition at line 161 of file HTGYRO-driver.h.
Calibrate the gyro by calculating the average offset of 5 raw readings.
- Parameters:
-
muxsensor | the SMUX sensor port number |
- Returns:
- the new offset value for the gyro
Definition at line 127 of file HTGYRO-driver.h.
int HTGYROstartCal |
( |
tSensors |
link ) |
|
Calibrate the gyro by calculating the average offset of 5 raw readings.
- Parameters:
-
link | the HTGYRO port number |
- Returns:
- the new offset value for the gyro
- Examples:
- HTGYRO-SMUX-test1.c, and HTGYRO-test1.c.
Definition at line 98 of file HTGYRO-driver.h.
Variable Documentation
Initial value: {{620, 620, 620, 620},
{620, 620, 620, 620},
{620, 620, 620, 620},
{620, 620, 620, 620}}
Definition at line 60 of file HTGYRO-driver.h.