Data Sheet

Core Spartan Documentation Modern Robotics, Inc
Version 3.0.3 Page 55
int getHeading(int frequency)
This function returns the location of the IR source with respect to the front of the
sensor. The heading is calculated from values read by the left and right IR
detectors. When the heading returns a value of zero, the IR source is directly in
front of the sensor.
int value;
value = seeker.getHeading();
…or…
Serial.print(seeker.getHeading());
int getIntensity(int frequency)
This function returns the intensity of the IR signal. This is a measurement of the
distance between the IR source and the IR Seeker V3.
int value;
value = seeker.getIntenisty();
…or…
Serial.print(seeker.getIntensity());
int getLeft(int frequency)
This function returns the IR value read by the left IR detector. When Left=Right
the IR source is directly in front of the sensor.
int value;
value = seeker.getLeft();
…or…
Serial.print(seeker.getRight());
int getRight(int frequency)
This function returns the IR value read by the right IR detector. When Left=Right
the IR source is directly in front of the sensor.
int value;
value = seeker.getLeft();
…or…
Serial.print(seeker.getRight());