mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
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:
committed by
Peter Johnson
parent
752f5fb4e4
commit
66b28e95a7
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user