You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if (_setVoltage != 0_V) { // If the intake wasn't running last tick,
89
+
// if (_setVoltage < 0_V && _intake->GetConfig().intakeSensor->Get() == 0) { // If the intake was intaking and there is a note in the intake,
90
+
// _intake->setState(IntakeState::kHold); // Hold that note.
91
+
// } else if (_setVoltage > 0_V && _intake->GetConfig().intakeSensor->Get() == 1) { // Else if the intake was ejecting and there is noting in the intake,
92
+
// _intake->setState(IntakeState::kIdle); // Set the intake to idle mode.
93
+
// }
94
+
95
+
// } else {
96
+
// if (_intake->GetConfig().intakeSensor->Get() == 0) { // If there is a note in the intake.
97
+
// if (_codriver.GetRightTriggerAxis() > 0.1) { // If the right trigger is pressed,
98
+
// _intake->setState(IntakeState::kPass); // Start passing the note into the shooter.
99
+
// } else { // Otherwise,
100
+
// _intake->setState(IntakeState::kHold); // Keep holding the note.
101
+
// }
102
+
// } else if (_intake->GetConfig().intakeSensor->Get() == 1) { // If there is nothing in the intake,
103
+
// if (_codriver.GetRightTriggerAxis() > 0.1) { // If the right trigger is pressed,
0 commit comments