[command] RamseteCommand: Output 0 if interrupted (#3216)

This commit is contained in:
Starlight220
2021-03-01 08:06:34 +02:00
committed by GitHub
parent 3cf44e0a53
commit 435bbb6a8c
2 changed files with 12 additions and 0 deletions

View File

@@ -200,6 +200,10 @@ public class RamseteCommand extends CommandBase {
@Override
public void end(boolean interrupted) {
m_timer.stop();
if (interrupted) {
m_output.accept(0.0, 0.0);
}
}
@Override