added logging the size of the data sent over the uart
diff --git a/frc971/input/sensor_receiver.cc b/frc971/input/sensor_receiver.cc
index f375f20..c95b4e3 100644
--- a/frc971/input/sensor_receiver.cc
+++ b/frc971/input/sensor_receiver.cc
@@ -117,7 +117,7 @@
State *state) {
::frc971::logging_structs::CapeReading reading_to_log(
cape_timestamp.sec(), cape_timestamp.nsec(),
- data->main.ultrasonic_pulse_length);
+ data->main.ultrasonic_pulse_length, sizeof(*data));
LOG_STRUCT(DEBUG, "cape reading", reading_to_log);
bool bad_gyro;
if (data->uninitialized_gyro) {
diff --git a/frc971/queues/to_log.q b/frc971/queues/to_log.q
index 24e2402..a8bee3f 100644
--- a/frc971/queues/to_log.q
+++ b/frc971/queues/to_log.q
@@ -4,4 +4,5 @@
uint32_t sec;
uint32_t nsec;
uint32_t sonar;
+ uint64_t struct_size;
};