|
|
@ -560,12 +560,13 @@ void pigeon_thread(Panda *panda) { |
|
|
|
int main() { |
|
|
|
int main() { |
|
|
|
LOGW("starting boardd"); |
|
|
|
LOGW("starting boardd"); |
|
|
|
|
|
|
|
|
|
|
|
// set process priority and affinity
|
|
|
|
if (!Hardware::PC()) { |
|
|
|
int err = set_realtime_priority(54); |
|
|
|
int err; |
|
|
|
LOG("set priority returns %d", err); |
|
|
|
err = set_realtime_priority(54); |
|
|
|
|
|
|
|
assert(err == 0); |
|
|
|
err = set_core_affinity({Hardware::TICI() ? 4 : 3}); |
|
|
|
err = set_core_affinity({Hardware::TICI() ? 4 : 3}); |
|
|
|
LOG("set affinity returns %d", err); |
|
|
|
assert(err == 0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
LOGW("attempting to connect"); |
|
|
|
LOGW("attempting to connect"); |
|
|
|
PubMaster pm({"pandaStates", "peripheralState"}); |
|
|
|
PubMaster pm({"pandaStates", "peripheralState"}); |
|
|
|