mirror of
https://github.com/trc492/FtcTemplate.git
synced 2025-07-04 06:21:23 -07:00
Added Robot.cancelAll() and remapped some buttons similar to FRC.
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user