Detailed Description
HiTechnic Magnetic Field Sensor
Function Documentation
int HTMAGreadCal |
( |
tSensors |
link ) |
|
Retrieve the current bias for the sensor
- Parameters:
-
muxsensor | the SMUX sensor port number |
- Returns:
- the bias value for the sensor
Definition at line 207 of file hitechnic-magfield.h.
int HTMAGreadRaw |
( |
tSensors |
link ) |
|
Read the raw value of the Magnetic Field Sensor
- Parameters:
-
link | the HTMAG port number |
- Returns:
- the value of the Magnetic Field Sensor (approx 300 to 700)
Definition at line 94 of file hitechnic-magfield.h.
Read the raw value of the Magnetic Field Sensor
- Parameters:
-
muxsensor | the SMUX sensor port number |
- Returns:
- the value of the Magnetic Field Sensor (approx 300 to 700)
Definition at line 111 of file hitechnic-magfield.h.
int HTMAGreadVal |
( |
tSensors |
link ) |
|
Read the value of the Magnetic Field Sensor
- Parameters:
-
muxsensor | the SMUX sensor port number |
- Returns:
- the value of the Magnetic Field Sensor (-200 to +200)
Definition at line 83 of file hitechnic-magfield.h.
void HTMAGsetCal |
( |
tSensors |
link, |
|
|
int |
bias |
|
) |
| |
Override the current bias for the sensor manually
- Parameters:
-
link | the HTMAG port number |
bias | the new bias to be used |
Definition at line 174 of file hitechnic-magfield.h.
void HTMAGsetCal |
( |
tMUXSensor |
muxsensor, |
|
|
int |
bias |
|
) |
| |
Override the current bias for the sensor manually
- Parameters:
-
muxsensor | the SMUX sensor port number |
bias | the new bias to be used |
Definition at line 185 of file hitechnic-magfield.h.
int HTMAGstartCal |
( |
tSensors |
link ) |
|
Calibrate the Magnetic Field Sensor by calculating the average bias of 5 raw readings.
- Parameters:
-
muxsensor | the SMUX sensor port number |
- Returns:
- the new bias value for the Magnetic Field Sensor
Definition at line 151 of file hitechnic-magfield.h.
Variable Documentation
Initial value: {{512, 512, 512, 512},
{512, 512, 512, 512},
{512, 512, 512, 512},
{512, 512, 512, 512}}
Definition at line 56 of file hitechnic-magfield.h.