33 TbotsProto::PowerStatus
poll(
const TbotsProto::PowerControl& control,
34 double kick_coeff,
int kick_constant,
int chip_constant);
45 void continuousRead();
47 std::thread read_thread;
48 std::atomic<TbotsProto_PowerStatus> status;
49 std::atomic<TbotsProto_PowerPulseControl> nanopb_command;
50 std::unique_ptr<BoostUartCommunication> uart;
53 const size_t READ_BUFFER_SIZE =
54 getMarshalledSize(TbotsProto_PowerStatus TbotsProto_PowerStatus_init_default);
55 const std::string DEVICE_SERIAL_PORT =
"/dev/ttyUSB0";
56 static constexpr unsigned int BAUD_RATE = 460800;
59 bool is_running =
true;
TbotsProto::PowerStatus poll(const TbotsProto::PowerControl &control, double kick_coeff, int kick_constant, int chip_constant)
Definition power.cpp:78