edu.wpi.first.wpilibj.communication
Class AICalibration

java.lang.Object
  extended by edu.wpi.first.wpilibj.communication.AICalibration

public class AICalibration
extends java.lang.Object

Class for calibrating the analog inputs.

Author:
jhersh

Constructor Summary
AICalibration()
           
 
Method Summary
static long getLSBWeight(int aiSystemIndex, int channel)
          Get the weight of the least significant bit.
static int getOffset(int aiSystemIndex, int channel)
          Get the offset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AICalibration

public AICalibration()
Method Detail

getLSBWeight

public static long getLSBWeight(int aiSystemIndex,
                                int channel)
Get the weight of the least significant bit.

Parameters:
aiSystemIndex - The system index.
channel - The analog channel.
Returns:
The LSB weight.

getOffset

public static int getOffset(int aiSystemIndex,
                            int channel)
Get the offset.

Parameters:
aiSystemIndex - The system index.
channel - The analog channel.
Returns:
The offset.