code/WPILib/DoubleSolenoid.cpp
/**
 * Set the value of a solenoid.
 * 
 * @param value Move the solenoid to forward, reverse, or don't move it.
 */
Set the value of a solenoid.

@param value Move the solenoid to forward, reverse, or don't move it.
Set the value of a solenoid . @param value Move the solenoid to forward reverse or don ' t move it .
void DoubleSolenoid::Set(Value value)
{
	UINT8 rawValue;
	switch(value)
	{
	case kOff:
		rawValue = 0x00;
		break;
	case kForward:
		rawValue = m_forwardMask;
		break;
	case kReverse:
		rawValue = m_reverseMask;
		break;
	}
	SolenoidBase::Set(rawValue, m_forwardMask | m_reverseMask);
}
void DoubleSolenoid :: Set ( Value value ) { UINT8 rawValue ; switch ( value ) { case kOff : rawValue = 0x00 ; break ; case kForward : rawValue = m_forwardMask ; break ; case kReverse : rawValue = m_reverseMask ; break ; } SolenoidBase :: Set ( rawValue , m_forwardMask | m_reverseMask ) ; }
Set the value of a solenoid.
Set the value of a solenoid .