4#include "../../CAN_IDs.h"
12 value /= WHEEL_PRECISION;
13 if (value < 0) value = 0;
15 msg[0] = LEFT_WHEEL_MSG;
17 for (
int i = 0; i < 4; i++)
18 msg[i + 1] =
static_cast<int>(value) >> (8 * i);
39 (state_checkup & 0x0F),
bool checkWithoutReset() const
Checks if the interval has passed without resetting the timer.
std::array< uint8_t, 8 > create_debug_message_1(const SystemData &system_data, uint8_t state, uint8_t state_checkup)
void create_left_wheel_msg(std::array< uint8_t, 5 > &msg, double value)
Function to create left wheel msg.
std::array< uint8_t, 7 > create_debug_message_2(const SystemData &system_data)
constexpr auto to_underlying(Enum e) noexcept
int _hydraulic_line_pressure
bool pneumatic_line_pressure_
bool pneumatic_line_pressure_2_
bool pneumatic_line_pressure_1_
Metro releaseEbsTimestamp
The whole model of the system: holds all the data necessary.
FailureDetection failure_detection_
HardwareData hardware_data_