MCU
Loading...
Searching...
No Matches
DrivebrainETHInterface.h
Go to the documentation of this file.
1#ifndef __DRIVEBRAINETHINTERFACE_H__
2#define __DRIVEBRAINETHINTERFACE_H__
3#include "hytech_msgs.pb.h"
4#include "DrivebrainData.h"
5#include "SharedDataTypes.h"
7{
8public:
12 };
13
14 void receive_pb_msg(const hytech_msgs_MCUCommandData &msg_in, unsigned long curr_millis);
15
16 hytech_msgs_MCUOutputData make_db_msg(const SharedCarState_s &shared_state);
18
19private:
20
22};
23
24#endif // __DRIVEBRAINETHINTERFACE_H__
hytech_msgs_MCUOutputData make_db_msg(const SharedCarState_s &shared_state)
DrivebrainData_s get_latest_data()
void receive_pb_msg(const hytech_msgs_MCUCommandData &msg_in, unsigned long curr_millis)
int64_t last_receive_time_millis
the latest time that the MCU received a message w.r.t the current tick's millis
Definition: DrivebrainData.h:9
int64_t DB_prev_MCU_recv_millis
the latest MCU last_receive_time_millis that the drivebrain received
car state struct that contains state of everything about the car including