ui/map: initialize speed filter with current speed (#29605)

fix map starting from 0 zoom
old-commit-hash: b9d77afd7e
beeps
Shane Smiskol 2 years ago committed by GitHub
parent c4bb5bbf04
commit 9a1f82a853
  1. 2
      selfdrive/ui/qt/maps/map.cc

@ -18,7 +18,7 @@ const float MAX_PITCH = 50;
const float MIN_PITCH = 0;
const float MAP_SCALE = 2;
MapWindow::MapWindow(const QMapboxGLSettings &settings) : m_settings(settings), velocity_filter(0, 10, 0.05) {
MapWindow::MapWindow(const QMapboxGLSettings &settings) : m_settings(settings), velocity_filter(0, 10, 0.05, false) {
QObject::connect(uiState(), &UIState::uiUpdate, this, &MapWindow::updateState);
map_overlay = new QWidget (this);

Loading…
Cancel
Save