Just because you
can do something and it doesn't break does not mean one
should do so.
A great example of why loops are dangerous are these two bits of code in your autonomous:
https://github.com/CAPS-Robotics/201...anOWar.cpp#L89
Code:
while (!aligned) {
... do things
}
If your gyro breaks (maybe the wire gets messed up on accident), your robot will never enter teleoperated mode and that match is over for you.
Same thing here:
Code:
do {
... fire = someSensor > some_value
} while (!fire)
If your encoder breaks/gets disconnected, same business. You're done.
Maybe you have magic hardware that never breaks, but I wouldn't put my trust in that.