mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Don't go into Intake mode if reset times out
This commit is contained in:
@@ -119,8 +119,10 @@ public class ManageStorage extends CommandBase {
|
||||
private void runReset() {
|
||||
m_storage.runStorage(-StorageConstants.STORAGE_SPEED);
|
||||
|
||||
if (isBallInIntake || (m_resetStartTime + StorageConstants.STORAGE_TIMEOUT) < System.currentTimeMillis()) {
|
||||
if (isBallInIntake) {
|
||||
m_storageMode = StorageMode.INTAKE;
|
||||
} else if (m_resetStartTime + StorageConstants.STORAGE_TIMEOUT < System.currentTimeMillis()) {
|
||||
m_storageMode = StorageMode.IDLE;
|
||||
}
|
||||
m_isStorageEmpty = !isBallInStorage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user