Switch magic timestamp channel to RemoteMessage
In order to track reboots and such, we really need to communicate more
information from the message_bridge to the logger. It is a shame to
have to modify the MessageHeader to do this, even though it would be
nice. Switch the remote timestamp channels over to a new RemoteMessage
channel instead, and add code to rename the channel when replaying.
There are no known log files with a MessageHeader actually logged, so
most of this should be pretty safe. I've tested this on an old log file
by hand.
Change-Id: If81b31869b95040151d833d20ec3eb8623ab1cd4
diff --git a/y2020/BUILD b/y2020/BUILD
index e54c168..a759681 100644
--- a/y2020/BUILD
+++ b/y2020/BUILD
@@ -172,7 +172,7 @@
"//y2020/vision/sift:sift_fbs",
"//y2020/vision/sift:sift_training_fbs",
"//y2020/vision:vision_fbs",
- "//aos/events/logging:logger_fbs",
+ "//aos/network:remote_message_fbs",
],
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//visibility:public"],
@@ -200,7 +200,7 @@
"//y2020/vision/sift:sift_fbs",
"//y2020/vision/sift:sift_training_fbs",
"//y2020/vision:vision_fbs",
- "//aos/events/logging:logger_fbs",
+ "//aos/network:remote_message_fbs",
],
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//visibility:public"],
@@ -216,7 +216,7 @@
src = "y2020_roborio.json",
flatbuffers = [
":setpoint_fbs",
- "//aos/events/logging:logger_fbs",
+ "//aos/network:remote_message_fbs",
"//aos/network:message_bridge_client_fbs",
"//aos/network:message_bridge_server_fbs",
"//aos/network:timestamp_fbs",
diff --git a/y2020/y2020_laptop.json b/y2020/y2020_laptop.json
index 37961f8..164e707 100644
--- a/y2020/y2020_laptop.json
+++ b/y2020/y2020_laptop.json
@@ -176,7 +176,7 @@
},
{
"name": "/laptop/aos/remote_timestamps/roborio",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"source_node": "laptop",
"logger": "NOT_LOGGED",
"frequency": 20,
@@ -185,7 +185,7 @@
},
{
"name": "/laptop/aos/remote_timestamps/pi1",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"source_node": "laptop",
"logger": "NOT_LOGGED",
"frequency": 20,
@@ -194,7 +194,7 @@
},
{
"name": "/laptop/aos/remote_timestamps/pi2",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"source_node": "laptop",
"logger": "NOT_LOGGED",
"frequency": 20,
@@ -203,7 +203,7 @@
},
{
"name": "/laptop/aos/remote_timestamps/pi3",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"source_node": "laptop",
"logger": "NOT_LOGGED",
"frequency": 20,
@@ -212,7 +212,7 @@
},
{
"name": "/laptop/aos/remote_timestamps/pi4",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"source_node": "laptop",
"logger": "NOT_LOGGED",
"frequency": 20,
diff --git a/y2020/y2020_roborio.json b/y2020/y2020_roborio.json
index 703d560..d463848 100644
--- a/y2020/y2020_roborio.json
+++ b/y2020/y2020_roborio.json
@@ -44,25 +44,25 @@
},
{
"name": "/roborio/aos/remote_timestamps/pi1",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/roborio/aos/remote_timestamps/pi2",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/roborio/aos/remote_timestamps/pi3",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/roborio/aos/remote_timestamps/pi4",
- "type": "aos.logger.MessageHeader",
+ "type": "aos.message_bridge.RemoteMessage",
"logger": "NOT_LOGGED",
"source_node": "roborio"
},