Added Robot.cancelAll() and remapped some buttons similar to FRC.

This commit is contained in:
Titan Robotics Club
2024-08-24 23:27:49 -07:00
parent f7a1dc0a9c
commit 5cf9a40402
2 changed files with 21 additions and 16 deletions

View File

@ -272,6 +272,20 @@ public class Robot
}
} //updateStatus
/**
* This method is called to cancel all pending operations and release the ownership of all subsystems.
*/
public void cancelAll()
{
globalTracer.traceInfo(moduleName, "Cancel all operations.");
if (robotDrive != null)
{
// Cancel all auto-assist driving.
robotDrive.cancel();
}
} //cancelAll
/**
* This method zero calibrates all subsystems.
*