mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
* less TICI when not needed * fix process replay * move reading voltages into hw abstraction layer * Update selfdrive/hardware/tici/hardware.h Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * Update selfdrive/hardware/hw.h Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * Update selfdrive/hardware/base.h Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * rename init function * Update selfdrive/athena/athenad.py Co-authored-by: Robbe Derks <robbe.derks@gmail.com> * Update selfdrive/boardd/boardd.cc * Apply suggestions from code review * Update selfdrive/thermald/thermald.py * update ref * fix alert width if all cameras are bad * add ecam to test_loggerd * bump cereal * bump cereal Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
23 lines
483 B
C++
23 lines
483 B
C++
#include <cassert>
|
|
|
|
#include "selfdrive/boardd/boardd.h"
|
|
#include "common/swaglog.h"
|
|
#include "common/util.h"
|
|
#include "selfdrive/hardware/hw.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
LOGW("starting boardd");
|
|
|
|
if (!Hardware::PC()) {
|
|
int err;
|
|
err = util::set_realtime_priority(54);
|
|
assert(err == 0);
|
|
err = util::set_core_affinity({4});
|
|
assert(err == 0);
|
|
}
|
|
|
|
std::vector<std::string> serials(argv + 1, argv + argc);
|
|
boardd_main_thread(serials);
|
|
return 0;
|
|
}
|