commit | 86f568ea0bf7d6d2aed8c77f4f5ca045fe44ce6d | [log] [tgz] |
---|---|---|
author | Vinay Siva <100024232@mvla.net> | Sun Jul 11 11:20:02 2021 -0700 |
committer | Vinay Siva <100024232@mvla.net> | Sat Aug 07 14:02:15 2021 -0700 |
tree | f7df3992000f6e5deb4231cd3d763cc44c420478 | |
parent | 921b256890e40dcaf083742503aba58afac34c06 [diff] |
Correction of switch-case implicit fall through error Change-Id: I049dc92cffefa068b6220a59369c4d6df2bdf9dc Signed-off-by: Vinay Siva <100024232@mvla.net>
diff --git a/y2018/control_loops/superstructure/superstructure.cc b/y2018/control_loops/superstructure/superstructure.cc index a3e7d4f..7d12fd5 100644 --- a/y2018/control_loops/superstructure/superstructure.cc +++ b/y2018/control_loops/superstructure/superstructure.cc
@@ -198,9 +198,8 @@ rotation_state_ = RotationState::ROTATING_LEFT; rotation_count_ = kReverseTime; break; - } else { - break; } + [[fallthrough]]; case RotationState::STUCK: { // Latch being stuck for 80 ms so we kick the box out far enough. if (last_stuck_time_ + chrono::milliseconds(80) < monotonic_now) {