same freq as ui

pull/22796/head
deanlee 4 years ago
parent 4d863da6fc
commit 30b091288f
  1. 4
      selfdrive/ui/soundd.cc

@ -45,11 +45,11 @@ public:
QTimer *timer = new QTimer(this);
QObject::connect(timer, &QTimer::timeout, this, &Sound::update);
timer->start();
timer->start(1000 / UI_FREQ);
};
void update() {
sm.update(100);
sm.update(0);
if (sm.updated("carState")) {
// scale volume with speed
float volume = util::map_val(sm["carState"].getCarState().getVEgo(), 0.f, 20.f,

Loading…
Cancel
Save