code/WPILib/AnalogTriggerOutput.cpp
/**
 * Get the state of the analog trigger output.
 * @return The state of the analog trigger output.
 */
Get the state of the analog trigger output.
@return The state of the analog trigger output.
Get the state of the analog trigger output . @return The state of the analog trigger output .
bool AnalogTriggerOutput::Get()
{
	switch(m_outputType)
	{
	case kInWindow:
		return m_trigger->m_trigger->readOutput_InHysteresis(m_trigger->m_index, &status);
	case kState:
		return m_trigger->m_trigger->readOutput_OverLimit(m_trigger->m_index, &status);
	case kRisingPulse:
	case kFallingPulse:
		wpi_fatal(AnalogTriggerPulseOutputError);
	}
	wpi_assert(false);
	return false;
}
bool AnalogTriggerOutput :: Get ( ) { switch ( m_outputType ) { case kInWindow : return m_trigger -> m_trigger -> readOutput_InHysteresis ( m_trigger -> m_index , & status ) ; case kState : return m_trigger -> m_trigger -> readOutput_OverLimit ( m_trigger -> m_index , & status ) ; case kRisingPulse : case kFallingPulse : wpi_fatal ( AnalogTriggerPulseOutputError ) ; } wpi_assert ( false ) ; return false ; }
Get the state of the analog trigger output.
Get the state of the analog trigger output .
// Should never get here.