Artifact artf3945 : CANTalon : Motor Safety Object never feed

Change-Id: I6894399d0eb7c36ff698639862fa6ad045a70db8
This commit is contained in:
Omar Zrien
2014-12-21 16:47:03 -05:00
parent 46dc99a115
commit aae20ddbff
2 changed files with 4 additions and 0 deletions

View File

@@ -105,6 +105,8 @@ float CANTalon::Get()
*/
void CANTalon::Set(float value, uint8_t syncGroup)
{
/* feed safety helper since caller just updated our output */
m_safetyHelper->Feed();
if(m_controlEnabled) {
m_setPoint = value;
CTR_Code status;

View File

@@ -133,6 +133,8 @@ public class CANTalon implements MotorSafety, PIDOutput, SpeedController {
* @param outputValue The setpoint value, as described above.
*/
public void set(double outputValue) {
/* feed safety helper since caller just updated our output */
m_safetyHelper.feed();
if (m_controlEnabled) {
m_setPoint = outputValue;
switch (m_controlMode) {