Skip to content

Commit

Permalink
replay: remove deprecated support for `PANDA_STATE_D_E_P_R_E_C_A_T_E_…
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee authored Nov 12, 2023
1 parent 816c18a commit 9e06525
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tools/replay/replay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "cereal/services.h"
#include "common/params.h"
#include "common/timing.h"
#include "system/hardware/hw.h"
#include "tools/replay/util.h"

Replay::Replay(QString route, QStringList allow, QStringList block, QStringList base_blacklist, SubMaster *sm_, uint32_t flags, QString data_dir, QObject *parent)
Expand Down Expand Up @@ -37,9 +36,6 @@ Replay::Replay(QString route, QStringList allow, QStringList block, QStringList
// the following events are needed for replay to work properly.
allow_list.insert(cereal::Event::Which::INIT_DATA);
allow_list.insert(cereal::Event::Which::CAR_PARAMS);
if (sockets_[cereal::Event::Which::PANDA_STATES] != nullptr) {
allow_list.insert(cereal::Event::Which::PANDA_STATE_D_E_P_R_E_C_A_T_E_D);
}
}

qDebug() << "services " << s;
Expand Down Expand Up @@ -418,16 +414,6 @@ void Replay::stream() {
cur_mono_time_ = evt->mono_time;
setCurrentSegment(toSeconds(cur_mono_time_) / 60);

// migration for pandaState -> pandaStates to keep UI working for old segments
if (cur_which == cereal::Event::Which::PANDA_STATE_D_E_P_R_E_C_A_T_E_D &&
sockets_[cereal::Event::Which::PANDA_STATES] != nullptr) {
MessageBuilder msg;
auto ps = msg.initEvent().initPandaStates(1);
ps[0].setIgnitionLine(true);
ps[0].setPandaType(cereal::PandaState::PandaType::DOS);
pm->send(sockets_[cereal::Event::Which::PANDA_STATES], msg);
}

if (cur_which < sockets_.size() && sockets_[cur_which] != nullptr) {
// keep time
long etime = (cur_mono_time_ - evt_start_ts) / speed_;
Expand Down

0 comments on commit 9e06525

Please sign in to comment.