7 hytech_msgs_MCUOutputData out;
11 out.has_rpm_data =
true;
22 out.has_load_cell_data =
true;
30 veh_vec<float> nm_lim(msg_in.torque_limit_nm.FL, msg_in.torque_limit_nm.FR, msg_in.torque_limit_nm.RL, msg_in.torque_limit_nm.RR);
31 veh_vec<float> speed_set(msg_in.desired_rpms.FL, msg_in.desired_rpms.FR, msg_in.desired_rpms.RL, msg_in.desired_rpms.RR);
hytech_msgs_MCUOutputData make_db_msg(const SharedCarState_s &shared_state)
void receive_pb_msg(const hytech_msgs_MCUCommandData &msg_in, unsigned long curr_millis)
DrivebrainData_s _latest_data
int64_t last_receive_time_millis
the latest time that the MCU received a message w.r.t the current tick's millis
int64_t DB_prev_MCU_recv_millis
the latest MCU last_receive_time_millis that the drivebrain received
veh_vec< float > speed_setpoints_rpm
veh_vec< float > torque_limits_nm
speed_rpm measuredSpeeds[NUM_MOTORS]
veh_vec< int > raw_load_cell_data
car state struct that contains state of everything about the car including
bool drivebrain_timing_failure
SteeringSystemData_s steering_data
PedalsSystemData_s pedals_data
DrivetrainDynamicReport_s drivetrain_data
LoadCellInterfaceRawOutput_s raw_loadcell_data
generic data vector type that can be used with tire and / or anything to do with 4 corners of the car...