Skip to content

Commit

Permalink
ABOM more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bubner committed Dec 2, 2024
1 parent f16e269 commit 83c69b3
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,19 @@ private void callback(@Nullable Reference<?> selectedOpMode) {

String timeLeft = getApproximateTimeLeft();
Text.Builder out = Text.builder();
out.append("[AutonomousBunyipsOpMode] onReady() called | %% task(s) queued%\n",
out.append("[AutonomousBunyipsOpMode] onReady() called | %% task(s) queued% | % subsystems\n",
userSelection != null ? "usr: " + Text.removeHtml(String.valueOf(selectedOpMode)) + " | " : "",
taskCount,
timeLeft.isEmpty() ? "" : timeLeft + " to complete"
timeLeft.isEmpty() ? "" : timeLeft + " to complete",
updatedSubsystems.size()
);
for (Task task : tasks) {
out.append(" -> %\n", task.toVerboseString());
}
out.append("\n");
for (BunyipsSubsystem subsystem : updatedSubsystems) {
out.append(" :: %\n", subsystem);
}
Dbg.logd(out.toString());
}

Expand Down

0 comments on commit 83c69b3

Please sign in to comment.