From 2afb2080665f9513613ba3ef29ec14e22537844d Mon Sep 17 00:00:00 2001 From: james Date: Mon, 16 May 2016 21:31:04 +1000 Subject: [PATCH 1/4] Added keep files so that build dirs are automatically created --- bin/bin.keep | 0 obj/bin.keep | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 bin/bin.keep create mode 100644 obj/bin.keep diff --git a/bin/bin.keep b/bin/bin.keep new file mode 100644 index 0000000..e69de29 diff --git a/obj/bin.keep b/obj/bin.keep new file mode 100644 index 0000000..e69de29 From 31f7fd6e2f7b4ba8d08d7122a2cf62b852d2cd92 Mon Sep 17 00:00:00 2001 From: James Mare Date: Mon, 16 May 2016 21:34:50 +1000 Subject: [PATCH 2/4] Update README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0a44be8..06e2953 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,15 @@ Supports UDP, and Serial is being worked on. - Install dependencies - sudo pacman -S boost - sudo apt-get install libboost-all-dev + Arch Linux: sudo pacman -S boost + Ubuntu: sudo apt-get install libboost-all-dev * Build cmavnode - mkdir bin && make + make -(Note: On ubuntu 14.04 and other operating systems with old versions of g++ it will be nescasary to change the "-stdc++14" flag in the makefile to "-stdc++1y") +For verbose logging of all mavlink messages, and debugger flags in executable: + + make debug ## Usage From 880503dd2934593a6e6bfbcfb7bf046228adcc15 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 16 May 2016 21:35:34 +1000 Subject: [PATCH 3/4] makefile changes: --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ca8c564..77599b4 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ BIN = bin/cmavnode CPP_FILES := $(wildcard src/*.cpp) OBJ_FILES := $(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o))) -LD_FLAGS := -std=c++14 -ggdb -lboost_program_options -lpthread -lboost_thread -lboost_system -CC_FLAGS := -std=c++14 -ggdb -DELPP_NO_DEFAULT_LOG_FILE -DELPP_STACKTRACE_ON_CRASH -DELPP_THREAD_SAFE +LD_FLAGS := -std=c++11 -lboost_program_options -lpthread -lboost_thread -lboost_system +CC_FLAGS := -std=c++11 -DELPP_NO_DEFAULT_LOG_FILE -DELPP_STACKTRACE_ON_CRASH -DELPP_THREAD_SAFE all: CC_FLAGS += -DNDEBUG all: $(BIN) +debug: CC_FLAGS += -ggdb +debug: LD_FLAGS += -ggdb debug: $(BIN) $(BIN): $(OBJ_FILES) From 5d9eaf91e2a600f1b3574a367da90ee22d78fe02 Mon Sep 17 00:00:00 2001 From: James Mare Date: Mon, 16 May 2016 21:35:40 +1000 Subject: [PATCH 4/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06e2953..588b0e2 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,11 @@ For verbose logging of all mavlink messages, and debugger flags in executable: ## Usage - bin/cmavnode --socket=:: + ./cmavnode --socket=:: For example, typical usage on a companion computer would be to have a serial port connecting to the autopilot, a socket forwarding packets to the ground, and a socket forwarding packets to other companion computer software. (e.g. dronekit) This would be done as follows - bin/cmavnode --socket=192.168.1.10:14550:14555 --socket=0.0.0.0:14551:14552 --serial=/dev/ttyAMA0:57600 + ./cmavnode --socket=192.168.1.10:14550:14555 --socket=0.0.0.0:14551:14552 --serial=/dev/ttyAMA0:57600 ## Routing Logic