|
|
@ -140,11 +140,9 @@ bool safety_setter_thread(std::vector<Panda *> pandas) { |
|
|
|
std::string params; |
|
|
|
std::string params; |
|
|
|
LOGW("waiting for params to set safety model"); |
|
|
|
LOGW("waiting for params to set safety model"); |
|
|
|
while (true) { |
|
|
|
while (true) { |
|
|
|
for (const auto& panda : pandas) { |
|
|
|
if (do_exit || !check_all_connected(pandas) || !ignition) { |
|
|
|
if (do_exit || !panda->connected || !ignition) { |
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (p.getBool("ControlsReady")) { |
|
|
|
if (p.getBool("ControlsReady")) { |
|
|
|
params = p.get("CarParams"); |
|
|
|
params = p.get("CarParams"); |
|
|
|