コード例 #1
0
ファイル: CGearTooth.cpp プロジェクト: anidev/frc-simulator
/**
 * Initialize the gear tooth sensor.
 *
 * @param slot The slot the digital module is plugged into
 * @param channel The digital I/O channel the sensor is plugged into
 * @param directionSensitive True if this geartooth sensor can differentiate between
 * foward and backward movement.
 */
void InitGearTooth(UINT8 moduleNumber, UINT32 channel, bool directionSensitive)
{
    GearTooth *gt = GTptr(moduleNumber, channel);
    if (gt) gt->EnableDirectionSensing(directionSensitive);
}
コード例 #2
0
ファイル: CGearTooth.cpp プロジェクト: FRC980/FRC-Team-980
/**
 * Initialize the gear tooth sensor.
 *
 * @param slot The slot the digital module is plugged into
 * @param channel The digital I/O channel the sensor is plugged into
 * @param directionSensitive True if this geartooth sensor can differentiate between
 * foward and backward movement.
 */
void InitGearTooth(UINT32 slot, UINT32 channel, bool directionSensitive)
{
	GearTooth *gt = GTptr(slot, channel);
	if (gt) gt->EnableDirectionSensing(directionSensitive);
}