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 206 of file HTMAG-driver.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 93 of file HTMAG-driver.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 110 of file HTMAG-driver.h.
int HTMAGreadVal |
( |
tSensors |
link ) |
|
Read the value of the Magnetic Field Sensor
- Parameters:
-
link | the HTMAG port number |
- Returns:
- the value of the Magnetic Field Sensor (-200 to +200)
- Examples:
- HTMAG-SMUX-test1.c, and HTMAG-test1.c.
Definition at line 65 of file HTMAG-driver.h.
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 82 of file HTMAG-driver.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 173 of file HTMAG-driver.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 184 of file HTMAG-driver.h.
int HTMAGstartCal |
( |
tSensors |
link ) |
|
Calibrate the sensor by calculating the average bias of 5 raw readings.
- Parameters:
-
link | the HTMAG port number |
- Returns:
- the new bias value for the sensor
- Examples:
- HTMAG-SMUX-test1.c, and HTMAG-test1.c.
Definition at line 121 of file HTMAG-driver.h.
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 150 of file HTMAG-driver.h.
Variable Documentation
Initial value: {{512, 512, 512, 512},
{512, 512, 512, 512},
{512, 512, 512, 512},
{512, 512, 512, 512}}
Definition at line 55 of file HTMAG-driver.h.