#define ReadSensorHTMagnet ( _p,
_offset,
_val   )     __ReadSensorHTGyro(_p, _offset, _val)

Read HiTechnic Magnet sensor.

Read the HiTechnic Magnet sensor on the specified port. The offset value should be calculated by averaging several readings with an offset of zero while the sensor is perfectly still.

Parameters:
_p The sensor port. See NBC Input port constants.
_offset The zero offset.
_val The Magnet sensor reading.

Generated by  doxygen 1.6.2