see if we call ui'c sm->update before mapwindow

pull/24632/head
Shane Smiskol 3 years ago
parent 59bb3c2364
commit e5dcd70013
  1. 1
      selfdrive/ui/qt/maps/map.cc
  2. 1
      selfdrive/ui/ui.cc

@ -25,6 +25,7 @@ const float MAP_SCALE = 2;
const QString ICON_SUFFIX = ".png";
MapWindow::MapWindow(const QMapboxGLSettings &settings) : m_settings(settings), velocity_filter(0, 10, 0.05) {
qDebug() << "MAPWINDOW SM UPDATE:" << millis_since_boot();
QObject::connect(uiState(), &UIState::uiUpdate, this, &MapWindow::updateState);
// Instructions

@ -119,6 +119,7 @@ static void update_model(UIState *s, const cereal::ModelDataV2::Reader &model) {
static void update_sockets(UIState *s) {
s->sm->update(0);
qDebug() << "UI UPDATE_SOCKETS SM UPDATE:" << millis_since_boot();
}
static void update_state(UIState *s) {

Loading…
Cancel
Save