Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Sep 29, 2021
1 parent d36555c commit bdfc7b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions selfdrive/ui/replay/logreader.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class Event {
which = event.which();
mono_time = event.getLogMonoTime();

// TODO: Split encodeIndex packets into two events
// 1) Send video data at t=timestampEof/timestampSof
// 2) Send encodeIndex packet at t=logMonoTime
if (which == cereal::Event::ROAD_ENCODE_IDX ||
which == cereal::Event::DRIVER_ENCODE_IDX ||
which == cereal::Event::WIDE_ROAD_ENCODE_IDX) {
Expand All @@ -35,6 +38,7 @@ class Event {
idx = event.getWideRoadEncodeIdx();
}

// C2 only has eof set, and some older routes have neither
uint64_t sof = idx.getTimestampSof();
uint64_t eof = idx.getTimestampEof();
if (sof > 0) {
Expand Down

0 comments on commit bdfc7b9

Please sign in to comment.