Skip to content

Commit

Permalink
Merge pull request #5 from peterbarker/add-analyzers
Browse files Browse the repository at this point in the history
la: pull analyzer content in from correct repo
  • Loading branch information
mrpollo committed Aug 24, 2015
2 parents 7c90c8e + 929cf18 commit 67319fe
Show file tree
Hide file tree
Showing 33 changed files with 2,055 additions and 64 deletions.
24 changes: 21 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,33 @@
#
# Now a make in this directory should work.

GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)

VPATH = ./util ./ini ./ini/cpp

INCS = -I./util -I./ini -I./ini/cpp

CFLAGS += -Wall $(INCS)
CXXFLAGS += -Wall $(INCS)
STD=-std=c++11
CFLAGS += -Wall $(INCS) -DGIT_VERSION=\"$(GIT_VERSION)\"
CXXFLAGS += -Wall $(INCS) $(STD) -g -fpermissive -DGIT_VERSION=\"$(GIT_VERSION)\"

DLIBS += -ljsoncpp

SRCS_CPP = dataflash_logger.cpp
SRCS_CPP += INIReader.cpp
SRCS_CPP += mavlink_message_handler.cpp
SRCS_CPP += mavlink_reader.cpp
SRCS_CPP += analyze.cpp
SRCS_CPP += analyzer.cpp
SRCS_CPP += heart.cpp
SRCS_CPP += analyzer_compass_offsets.cpp
SRCS_CPP += analyzer_ever_armed.cpp
SRCS_CPP += analyzer_ever_flew.cpp
SRCS_CPP += analyzer_good_ekf.cpp
SRCS_CPP += analyzer_battery.cpp
SRCS_CPP += analyzer_brownout.cpp
SRCS_CPP += analyzer_crashed.cpp
SRCS_CPP += la-log.cpp
SRCS_C = util.c ini.c

OBJS = $(SRCS_CPP:.cpp=.o) $(SRCS_C:.c=.o)
Expand All @@ -30,9 +45,12 @@ MAIN = dataflash_logger # actually, the main is in mavlink_reader...
all: $(MAIN)

$(MAIN): $(OBJS)
$(LINK.cpp) -o $(MAIN) $(OBJS) $(LIBS)
$(LINK.cpp) -o $(MAIN) $(OBJS) $(LIBS) $(DLIBS)

clean:
$(RM) *.o *~ $(MAIN)

test: clean all
cd test; ./test.sh

.PHONY: clean
9 changes: 9 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Adding new tests (FIXME)
---------------
Duplicate a test, change the obvious stuff
Ensure the paket types you are interested in are being handled in:
- mavlink_message_handler.h
- ensure mavlink_reader.cpp mentions your packet type in handle_message_received
- ensure analyze.h mentions the appropriately-signaured functions


Loading

0 comments on commit 67319fe

Please sign in to comment.