pull/24632/head
Shane Smiskol 3 years ago
parent f61d3fa55a
commit cb23a5ce98
  1. 3
      selfdrive/ui/qt/maps/map.cc
  2. 2
      selfdrive/ui/qt/maps/map.h

@ -105,6 +105,7 @@ void MapWindow::updateState(const UIState &s) {
return; return;
} }
const SubMaster &sm = *(s.sm); const SubMaster &sm = *(s.sm);
update();
if (sm.updated("liveLocationKalman")) { if (sm.updated("liveLocationKalman")) {
auto location = sm["liveLocationKalman"].getLiveLocationKalman(); auto location = sm["liveLocationKalman"].getLiveLocationKalman();
@ -200,8 +201,6 @@ void MapWindow::updateState(const UIState &s) {
route_rcv_frame = sm.rcv_frame("navRoute"); route_rcv_frame = sm.rcv_frame("navRoute");
} }
update();
} }
void MapWindow::resizeGL(int w, int h) { void MapWindow::resizeGL(int w, int h) {

@ -13,7 +13,6 @@
#include <QScopedPointer> #include <QScopedPointer>
#include <QString> #include <QString>
#include <QtGlobal> #include <QtGlobal>
#include <QTimer>
#include <QWheelEvent> #include <QWheelEvent>
#include <QMap> #include <QMap>
#include <QPixmap> #include <QPixmap>
@ -92,7 +91,6 @@ private:
void pinchTriggered(QPinchGesture *gesture); void pinchTriggered(QPinchGesture *gesture);
bool m_sourceAdded = false; bool m_sourceAdded = false;
// QTimer* timer;
bool loaded_once = false; bool loaded_once = false;
bool allow_open = true; bool allow_open = true;

Loading…
Cancel
Save