libnxter
0.1
|
Motor setup caliberation utilities. More...
Go to the source code of this file.
Functions | |
int | CaliberateMotor (int motor, int sensor, int postAlignmentPercentage) |
Caliberates a rotary motor setup that has a sensor attached to detect a cyclic position. More... | |
Motor setup caliberation utilities.
Definition in file CaliberateMotors.nxc.
int CaliberateMotor | ( | int | motor, |
int | sensor, | ||
int | postAlignmentPercentage | ||
) |
Caliberates a rotary motor setup that has a sensor attached to detect a cyclic position.
Motor is turned couple of times and sensor is read. Then the motor is aligned postAlignmentPercentage amount away from the sensor (0% is just at the sensor ... 100% is one full cycle). It returns amount of tacho counts required to make a full cycle in the setup.
Definition at line 75 of file CaliberateMotors.nxc.