-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef __DRIVEBRAINETHINTERFACE_H__ | ||
#define __DRIVEBRAINETHINTERFACE_H__ | ||
#include "hytech_msgs.pb.h" | ||
#include "DrivebrainData.h" | ||
|
||
class DrivebrainETHInterface | ||
{ | ||
public: | ||
DrivebrainETHInterface() = default; | ||
|
||
void receive_pb_msg(const hytech_msgs_MCUData& msg_in); | ||
|
||
DrivebrainData_s get_latest_data() { return _latest_data; } | ||
|
||
private: | ||
|
||
DrivebrainData_s _latest_data = {}; | ||
|
||
}; | ||
|
||
#endif // __DRIVEBRAINETHINTERFACE_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "DrivebrainETHInterface.h" | ||
|
||
#include <Arduino.h> | ||
void DrivebrainETHInterface::receive_pb_msg(const hytech_msgs_MCUData& msg_in) | ||
{ | ||
Serial.println("msg recvd"); | ||
_latest_data = {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters