Adds new CanTalon HAL Functions to C library

New functions were added to CanTalonSRX in the HAL, however they were
not added to the C side of the library.

Change-Id: I15197e5dce5db0f5ff207d1318c21be485c90741
This commit is contained in:
Thad House
2015-10-30 23:29:39 -07:00
committed by Peter Johnson
parent 752f5fb4e4
commit 66b28e95a7
2 changed files with 25 additions and 0 deletions

View File

@@ -411,6 +411,11 @@ extern "C" {
CTR_Code c_TalonSRX_SetProfileSlotSelect(void *handle, int param);
CTR_Code c_TalonSRX_SetRampThrottle(void *handle, int param);
CTR_Code c_TalonSRX_SetRevFeedbackSensor(void *handle, int param);
CTR_Code c_TalonSRX_GetPulseWidthPosition(void *handle, int *param);
CTR_Code c_TalonSRX_GetPulseWidthVelocity(void *handle, int *param);
CTR_Code c_TalonSRX_GetPulseWidthRiseToFallUs(void *handle, int *param);
CTR_Code c_TalonSRX_GetPulseWidthRiseToRiseUs(void *handle, int *param);
CTR_Code c_TalonSRX_IsPulseWidthSensorPresent(void *handle, int *param);
}
#endif

View File

@@ -1394,4 +1394,24 @@ CTR_Code c_TalonSRX_SetRevFeedbackSensor(void *handle, int param)
{
return ((CanTalonSRX*)handle)->SetRevFeedbackSensor(param);
}
CTR_Code c_TalonSRX_GetPulseWidthPosition(void *handle, int *param)
{
return ((CanTalonSRX*)handle)->GetPulseWidthPosition(*param);
}
CTR_Code c_TalonSRX_GetPulseWidthVelocity(void *handle, int *param)
{
return ((CanTalonSRX*)handle)->GetPulseWidthVelocity(*param);
}
CTR_Code c_TalonSRX_GetPulseWidthRiseToFallUs(void *handle, int *param)
{
return ((CanTalonSRX*)handle)->GetPulseWidthRiseToFallUs(*param);
}
CTR_Code c_TalonSRX_GetPulseWidthRiseToRiseUs(void *handle, int *param)
{
return ((CanTalonSRX*)handle)->GetPulseWidthRiseToRiseUs(*param);
}
CTR_Code c_TalonSRX_IsPulseWidthSensorPresent(void *handle, int *param)
{
return ((CanTalonSRX*)handle)->IsPulseWidthSensorPresent(*param);
}
}