The directional if statements in the loop() function can be made more efficient and shortened. For now the code will remain the way it is, but after we decide if we are going to implement speed, these change(s) will be considered.
Example:
if (backing up) {
turn on back up lights
} else {
turn off backing lights
if (going forward) {
etc...
}
}
The directional if statements in the
loop()
function can be made more efficient and shortened. For now the code will remain the way it is, but after we decide if we are going to implement speed, these change(s) will be considered.Example: