We can organize the telemetry statements so that they are useful instead of scrolling the matrix for no reason.
In every waiting while() loop,
[ ] Make sure the telemetry.addData for the name of the current state/status comes beforedrive.update().
[ ] Make sure the status telemetry puts timer.getElapsedTime() for the numerical value after the label.
[ ] Make sure the telemetry.addData for everything else about the current state come afterdrive.update().
[ ] Make sure the telemetry.update() comes after both of these.
[ ] Move timer.update() to be before the give up time check.
[ ] Keep the logData() call at the end of the loop.
For code outside of any while() loop,
[ ] Delete all telemetry.addData() and telemetry.update() calls.
[ ] Delete all timer.update() calls EXCEPT for the ones right before time-based while() loops, where the time is saved in a variable.
[ ] Make sure there actually is a timer.update() call right before timer.getElapsedTime() is used, for example line 542 when storing placerTimerStartTime.
We can organize the telemetry statements so that they are useful instead of scrolling the matrix for no reason.
In every waiting
while()
loop,telemetry.addData
for the name of the current state/status comes beforedrive.update()
.timer.getElapsedTime()
for the numerical value after the label.telemetry.addData
for everything else about the current state come afterdrive.update()
.telemetry.update()
comes after both of these.timer.update()
to be before the give up time check.logData()
call at the end of the loop.For code outside of any
while()
loop,telemetry.addData()
andtelemetry.update()
calls.timer.update()
calls EXCEPT for the ones right before time-basedwhile()
loops, where the time is saved in a variable.timer.update()
call right beforetimer.getElapsedTime()
is used, for example line 542 when storingplacerTimerStartTime
.