コード例 #1
0
ファイル: TubeBot.cpp プロジェクト: The-Charge/2011_TubeBot
	bool Cypress::getSwitch(){
		return GetAnalogIn(5)>1.5;
	}
コード例 #2
0
ファイル: CANTalon.cpp プロジェクト: FRCTeam1967/FRCTeam1967
/**
 * Get the position of whatever is in the analog pin of the Talon, regardless of
 * whether it is actually being used for feedback.
 *
 * @returns The ADC (0 - 1023) on analog pin of the Talon.
 */
int CANTalon::GetAnalogInRaw()
{
    return GetAnalogIn() & 0x3FF;
}