libnxter  0.1
Functions
CaliberateMotors.nxc File Reference

Motor setup caliberation utilities. More...

This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Motor setup caliberation utilities.

Definition in file CaliberateMotors.nxc.

Function Documentation

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.