Add utility to auto-trim FRC logs

This takes a log and automatically trims it to just the time period
where it was enabled. This is particularly helpful for analyzing match
logs where several hundred seconds may pass before the log begins.

Change-Id: If24548187f139b935699c8aaaddb53680471f9d9
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/frc971/analysis/BUILD b/frc971/analysis/BUILD
index 442a7de..dd3d092 100644
--- a/frc971/analysis/BUILD
+++ b/frc971/analysis/BUILD
@@ -177,6 +177,21 @@
 )
 
 cc_binary(
+    name = "trim_log_to_enabled",
+    srcs = [
+        "trim_log_to_enabled.cc",
+    ],
+    target_compatible_with = ["@platforms//os:linux"],
+    deps = [
+        "//aos:init",
+        "//aos/events:simulated_event_loop",
+        "//aos/events/logging:log_reader",
+        "//aos/util:simulation_logger",
+        "//frc971/input:joystick_state_fbs",
+    ],
+)
+
+cc_binary(
     name = "log_to_match",
     srcs = [
         "log_to_match.cc",