edu.wpi.first.wpilibj.communication
Class ModulePresence
java.lang.Object
edu.wpi.first.wpilibj.communication.ModulePresence
public class ModulePresence
- extends Object
Class for communicating with the NetworkCommunication library routines
which check module presence.
- Author:
- pmalmsten
kMaxModuleNumber
public static final int kMaxModuleNumber
- See Also:
- Constant Field Values
ModulePresence
public ModulePresence()
getModulePresence
public static boolean getModulePresence(ModulePresence.ModuleType moduleType,
int moduleNumber)
- Determines whether the module of the given type and number is present.
This method calls the appropriate C function within the NetworkCommunication
library in order to get the answer.
- Parameters:
moduleType
- The type of the module to be check.moduleNumber
- The ID for this type of module to check (usually 0 or 1).
- Returns:
- Whether the given module is present.
"For updated information see the Java FRC site"