15 FRONT_THERMISTORS_t front_thermistors;
17 front_thermistors.thermistor_motor_fl_ro = HYTECH_thermistor_motor_fl_ro_toS(
therm_fl);
18 front_thermistors.thermistor_motor_fr_ro = HYTECH_thermistor_motor_fr_ro_toS(
therm_fr);
20 enqueue_CAN_front_thermistors<FRONT_THERMISTORS_t>(&front_thermistors, &Pack_FRONT_THERMISTORS_hytech);
26 CAN_message_t can_msg;
27 can_msg.id = pack_function(structure, can_msg.buf, &can_msg.len, (uint8_t*) &can_msg.flags.extended);
28 uint8_t buf[
sizeof(CAN_message_t)] = {};
29 memmove(buf, &can_msg,
sizeof(CAN_message_t));
30 _msg_queue->push_back(buf,
sizeof(CAN_message_t));
40 therm_fl = fl_channel.convert((uint16_t)raw_therm_fl.raw);
41 therm_fr = fr_channel.convert((uint16_t)raw_therm_fr.raw);
Circular_Buffer< uint8_t,(uint32_t) 128, sizeof(CAN_message_t)> CANBufferType
const int MCU15_THERM_FR_CHANNEL
const int MCU15_THERM_FL_CHANNEL
CANBufferType * _msg_queue
void tick(const AnalogConversion_s &raw_therm_fl, const AnalogConversion_s &raw_therm_fr)
Thermistors< MCU15_NUM_THERMISTORS > _front_thermistors
void enqueue_CAN_front_thermistors(U *structure, uint32_t(*pack_function)(U *, uint8_t *, uint8_t *, uint8_t *))
void update_front_thermistor_readings()
ThermistorInterface(CANBufferType *msg_output_queue)