bool Cypress::getSwitch(){ return GetAnalogIn(5)>1.5; }
/** * 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; }