code/WPILib/DriverStation.cpp
/**
 * Get values from the digital inputs on the Driver Station.
 * Return digital values from the Drivers Station. These values are typically used for buttons
 * and switches on advanced operator interfaces.
 * @param channel The digital input to get. Valid range is 1 - 8.
 */
Get values from the digital inputs on the Driver Station.
Return digital values from the Drivers Station. These values are typically used for buttons
and switches on advanced operator interfaces.
@param channel The digital input to get. Valid range is 1 - 8.
Get values from the digital inputs on the Driver Station . Return digital values from the Drivers Station . These values are typically used for buttons and switches on advanced operator interfaces . @param channel The digital input to get . Valid range is 1 - 8 .
bool DriverStation::GetDigitalIn(UINT32 channel)
{
	wpi_assert ((channel >= 1) && (channel <= 8));
	return ((m_controlData->dsDigitalIn >> (channel-1)) & 0x1) ? true : false;
}
bool DriverStation :: GetDigitalIn ( UINT32 channel ) { wpi_assert ( ( channel >= 1 ) && ( channel <= 8 ) ) ; return ( ( m_controlData -> dsDigitalIn >> ( channel - 1 ) ) & 0x1 ) ? true : false ; }
Get values from the digital inputs on the Driver Station.
Get values from the digital inputs on the Driver Station .