Commit 7bf0310a authored by Simon Krissel's avatar Simon Krissel
Browse files

Proto message from simulation to car

parent de4c2723
...@@ -9,10 +9,13 @@ CFLAGS += --include=../../include/generated/autoconf.h ...@@ -9,10 +9,13 @@ CFLAGS += --include=../../include/generated/autoconf.h
LDLIBS += -lpthread LDLIBS += -lpthread
all: can_simu_transmitter all: can_simu_transmitter can_proto
can_simu_transmitter: can_simu_transmitter.c can_simu_transmitter: can_simu_transmitter.c
can_proto: can.proto
protoc *.proto --c_out=.
.PHONY: clean .PHONY: clean
clean: clean:
rm -f can_simu_transmitter rm -f can_simu_transmitter
......
syntax = "proto2";
message CAN {
required int32 speed = 1;
required int32 mc_count = 2;
}
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
#include <arpa/inet.h> #include <arpa/inet.h>
// Protobuf
#include "can.pb-c.h"
#define HEARTBEAT_WATCHDOG_TIMEOUT_MS (500) #define HEARTBEAT_WATCHDOG_TIMEOUT_MS (500)
#define SERVERPORT (19991) #define SERVERPORT (19991)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment