code/WPILib/CANJaguar.cpp
/**
 * Disable the closed loop controller.
 * 
 * Stop driving the output based on the feedback.
 */
Disable the closed loop controller.

Stop driving the output based on the feedback.
Disable the closed loop controller . Stop driving the output based on the feedback .
void CANJaguar::DisableControl()
{
	UINT8 dataBuffer[8];
	UINT8 dataSize = 0;
	switch(m_controlMode)
	{
	case kPercentVbus:
		setTransaction(LM_API_VOLT_DIS, dataBuffer, dataSize);
		break;
	case kSpeed:
		setTransaction(LM_API_SPD_DIS, dataBuffer, dataSize);
		break;
	case kPosition:
		setTransaction(LM_API_POS_DIS, dataBuffer, dataSize);
		break;
	case kCurrent:
		setTransaction(LM_API_ICTRL_DIS, dataBuffer, dataSize);
		break;
	case kVoltage:
		setTransaction(LM_API_VCOMP_DIS, dataBuffer, dataSize);
		break;
	}
}
void CANJaguar :: DisableControl ( ) { UINT8 dataBuffer [ 8 ] ; UINT8 dataSize = 0 ; switch ( m_controlMode ) { case kPercentVbus : setTransaction ( LM_API_VOLT_DIS , dataBuffer , dataSize ) ; break ; case kSpeed : setTransaction ( LM_API_SPD_DIS , dataBuffer , dataSize ) ; break ; case kPosition : setTransaction ( LM_API_POS_DIS , dataBuffer , dataSize ) ; break ; case kCurrent : setTransaction ( LM_API_ICTRL_DIS , dataBuffer , dataSize ) ; break ; case kVoltage : setTransaction ( LM_API_VCOMP_DIS , dataBuffer , dataSize ) ; break ; } }
Disable the closed loop controller.
Disable the closed loop controller .