mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Artifact artf3945 : CANTalon : Motor Safety Object never feed
Change-Id: I6894399d0eb7c36ff698639862fa6ad045a70db8
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user