#include <ThermistorInterface.h>
Definition at line 16 of file ThermistorInterface.h.
◆ ThermistorInterface()
| ThermistorInterface::ThermistorInterface |
( |
CANBufferType * |
msg_output_queue | ) |
|
◆ convert()
| float ThermistorInterface::convert |
( |
int |
raw | ) |
|
|
private |
◆ enqueue_CAN_front_thermistors()
template<typename U >
| void ThermistorInterface::enqueue_CAN_front_thermistors |
( |
U * |
structure, |
|
|
uint32_t(*)(U *, uint8_t *, uint8_t *, uint8_t *) |
pack_function |
|
) |
| |
Definition at line 24 of file ThermistorInterface.cpp.
25{
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));
31}
◆ tick()
| void ThermistorInterface::tick |
( |
const AnalogConversion_s & |
raw_therm_fl, |
|
|
const AnalogConversion_s & |
raw_therm_fr |
|
) |
| |
Definition at line 33 of file ThermistorInterface.cpp.
35{
36
39
40 therm_fl = fl_channel.convert((uint16_t)raw_therm_fl.raw);
41 therm_fr = fr_channel.convert((uint16_t)raw_therm_fr.raw);
43}
const int MCU15_THERM_FR_CHANNEL
const int MCU15_THERM_FL_CHANNEL
Thermistors< MCU15_NUM_THERMISTORS > _front_thermistors
void update_front_thermistor_readings()
◆ update_front_thermistor_readings()
| void ThermistorInterface::update_front_thermistor_readings |
( |
| ) |
|
Definition at line 13 of file ThermistorInterface.cpp.
14{
15 FRONT_THERMISTORS_t front_thermistors;
16
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);
19
20 enqueue_CAN_front_thermistors<FRONT_THERMISTORS_t>(&front_thermistors, &Pack_FRONT_THERMISTORS_hytech);
21}
◆ _front_thermistors
◆ _msg_queue
◆ therm_fl
| float ThermistorInterface::therm_fl |
|
private |
◆ therm_fr
| float ThermistorInterface::therm_fr |
|
private |
The documentation for this class was generated from the following files: