PX4: enabled support for UAVCAN

This commit is contained in:
Holger Steinhaus 2014-08-11 22:32:30 +02:00 committed by Andrew Tridgell
parent 57d2fc1dd5
commit 71b2306aa9
3 changed files with 12 additions and 0 deletions

View File

@ -345,6 +345,13 @@ else
sh /etc/init.d/rc.error sh /etc/init.d/rc.error
fi fi
if uavcan start 1
then
echo "started uavcan OK"
else
echo "failed to start uavcan"
fi
if mtd readtest /fs/mtd if mtd readtest /fs/mtd
then then
echo "mtd readtest OK" echo "mtd readtest OK"

View File

@ -74,6 +74,10 @@ MODULES += modules/libtomcrypt
endif endif
MODULES += lib/conversion MODULES += lib/conversion
MODULES += modules/uavcan
MODULES += lib/mathlib
LIBRARIES += lib/mathlib/CMSIS
# #
# Transitional support - add commands from the NuttX export archive. # Transitional support - add commands from the NuttX export archive.
# #

View File

@ -31,6 +31,7 @@ PX4_GIT_VERSION := $(shell cd $(PX4_ROOT) && git rev-parse HEAD | cut -c1-8)
EXTRAFLAGS += -DNUTTX_GIT_VERSION="\"$(NUTTX_GIT_VERSION)\"" EXTRAFLAGS += -DNUTTX_GIT_VERSION="\"$(NUTTX_GIT_VERSION)\""
EXTRAFLAGS += -DPX4_GIT_VERSION="\"$(PX4_GIT_VERSION)\"" EXTRAFLAGS += -DPX4_GIT_VERSION="\"$(PX4_GIT_VERSION)\""
EXTRAFLAGS += -DUAVCAN=1
# we have different config files for V1 and V2 # we have different config files for V1 and V2
PX4_V1_CONFIG_FILE=$(MK_DIR)/PX4/config_px4fmu-v1_APM.mk PX4_V1_CONFIG_FILE=$(MK_DIR)/PX4/config_px4fmu-v1_APM.mk