code/WPILib/DoubleSolenoid.cpp
/**
 * Read the current value of the solenoid.
 * 
 * @return The current value of the solenoid.
 */
Read the current value of the solenoid.

@return The current value of the solenoid.
Read the current value of the solenoid . @return The current value of the solenoid .
DoubleSolenoid::Value DoubleSolenoid::Get()
{
	UINT8 value = GetAll();
	if (value & m_forwardMask) return kForward;
	if (value & m_reverseMask) return kReverse;
	return kOff;
}
DoubleSolenoid :: Value DoubleSolenoid :: Get ( ) { UINT8 value = GetAll ( ) ; if ( value & m_forwardMask ) return kForward ; if ( value & m_reverseMask ) return kReverse ; return kOff ; }
Read the current value of the solenoid.
Read the current value of the solenoid .