|
Commands immediately canceling
Hello, we have a command which runs a motor until a switch has been pressed. We want this functionality for another subsystem. We copy pasted the code from the first subsystem into the second subsystem changing ports names etc. We have buttons on smartdashboard which activate certain commands. When the first command is started it works fine. When the copyed command is started it automatically cancels. We have even tried making it so that the isFinished method always returns false but it still cancels instantly. Does anyone know what the problem might be?
|