Add additional debugging to argus_monitor, tweak thresholds

Based on some experiences at champs, tweak the threshold; this also
pulls in some additional debug statements from other commits.

Change-Id: Ic459c70ccb4c49e1003d4b2167c679f6e706f7d6
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/frc971/orin/argus_monitor.cc b/frc971/orin/argus_monitor.cc
index 8f129b2..13130cc 100644
--- a/frc971/orin/argus_monitor.cc
+++ b/frc971/orin/argus_monitor.cc
@@ -11,7 +11,7 @@
 #include "aos/realtime.h"
 
 DEFINE_int32(priority, -1, "If set, the RT priority to run at.");
-DEFINE_double(max_jitter, 5.00,
+DEFINE_double(max_jitter, 10.00,
               "The max time in seconds between messages before considering the "
               "camera processes dead.");
 DEFINE_double(grace_period, 10.00,
@@ -44,6 +44,9 @@
   }
 
   void HandleMessage(const aos::Context &context) {
+    if (last_time_ == aos::monotonic_clock::min_time) {
+      LOG(INFO) << "First message on " << channel_name_;
+    }
     last_time_ = context.monotonic_event_time;
   }
 
@@ -53,6 +56,8 @@
         event_loop->monotonic_now()) {
       // Restart camera services
       LOG(INFO) << "Restarting camera services";
+      LOG(INFO) << "Channel " << channel_name_ << " has not received a message "
+                << FLAGS_max_jitter << " seconds";
       CHECK_EQ(std::system("aos_starter stop argus_camera0"), 0);
       CHECK_EQ(std::system("aos_starter stop argus_camera1"), 0);
       CHECK_EQ(std::system("sudo systemctl restart nvargus-daemon.service"), 0);