2013-05-31 11:39:49 +02:00
|
|
|
#
|
2016-02-09 20:43:44 +01:00
|
|
|
# Copyright (c) 2015-2016, The LibrePilot Project, http://www.librepilot.org
|
2013-05-31 11:39:49 +02:00
|
|
|
# Copyright (c) 2009-2013, The OpenPilot Team, http://www.openpilot.org
|
|
|
|
# Copyright (c) 2012, PhoenixPilot, http://github.com/PhoenixPilot
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along
|
|
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
#####
|
|
|
|
|
2015-08-02 17:01:14 +02:00
|
|
|
ifndef FLIGHT_MAKEFILE
|
2013-05-31 11:39:49 +02:00
|
|
|
$(error Top level Makefile must be used to build this target)
|
|
|
|
endif
|
|
|
|
|
|
|
|
include ../board-info.mk
|
2015-08-02 17:01:14 +02:00
|
|
|
include $(FLIGHT_ROOT_DIR)/make/firmware-defs.mk
|
2013-05-31 11:39:49 +02:00
|
|
|
|
2015-04-23 13:13:00 +02:00
|
|
|
# REVO C++ support
|
|
|
|
USE_CXX = YES
|
|
|
|
|
2013-05-31 11:39:49 +02:00
|
|
|
# ARM DSP library
|
|
|
|
USE_DSP_LIB ?= NO
|
|
|
|
|
|
|
|
# List of mandatory modules to include
|
2016-02-09 20:43:44 +01:00
|
|
|
MODULES += Sensors
|
2013-05-31 11:39:49 +02:00
|
|
|
#MODULES += Attitude/revolution
|
|
|
|
#MODULES += StateEstimation # use instead of Attitude
|
|
|
|
#MODULES += Altitude/revolution
|
|
|
|
#MODULES += Airspeed
|
|
|
|
#MODULES += AltitudeHold
|
2014-09-15 23:43:58 +02:00
|
|
|
MODULES += Stabilization
|
2014-08-18 16:35:02 +02:00
|
|
|
MODULES += Notify
|
2013-05-31 11:39:49 +02:00
|
|
|
MODULES += ManualControl
|
2014-09-15 23:43:58 +02:00
|
|
|
MODULES += Receiver
|
2013-05-31 11:39:49 +02:00
|
|
|
MODULES += Actuator
|
|
|
|
MODULES += GPS
|
|
|
|
MODULES += TxPID
|
|
|
|
MODULES += CameraStab
|
|
|
|
MODULES += Battery
|
|
|
|
MODULES += FirmwareIAP
|
|
|
|
#MODULES += Radio
|
|
|
|
MODULES += PathPlanner
|
2014-08-10 12:50:38 +02:00
|
|
|
MODULES += PathFollower
|
2013-05-31 11:39:49 +02:00
|
|
|
MODULES += Osd/osdoutout
|
|
|
|
MODULES += Logging
|
|
|
|
MODULES += Telemetry
|
|
|
|
|
|
|
|
OPTMODULES += ComUsbBridge
|
|
|
|
|
2014-05-11 12:01:53 +02:00
|
|
|
SRC += $(FLIGHTLIB)/notification.c
|
|
|
|
|
2013-05-31 11:39:49 +02:00
|
|
|
# Include all camera options
|
|
|
|
CDEFS += -DUSE_INPUT_LPF -DUSE_GIMBAL_LPF -DUSE_GIMBAL_FF
|
|
|
|
|
|
|
|
# Some diagnostics
|
|
|
|
CDEFS += -DDIAG_TASKS
|
|
|
|
|
|
|
|
# Misc options
|
|
|
|
CFLAGS += -ffast-math
|
|
|
|
|
|
|
|
# List C source files here (C dependencies are automatically generated).
|
|
|
|
# Use file-extension c for "c-only"-files
|
|
|
|
ifndef TESTAPP
|
|
|
|
## Application Core
|
|
|
|
SRC += ../pios_usb_board_data.c
|
|
|
|
SRC += $(OPMODULEDIR)/System/systemmod.c
|
2015-04-23 13:13:00 +02:00
|
|
|
CPPSRC += $(OPSYSTEM)/discoveryf4bare.cpp
|
2013-05-31 11:39:49 +02:00
|
|
|
SRC += $(OPSYSTEM)/pios_board.c
|
|
|
|
SRC += $(FLIGHTLIB)/alarms.c
|
|
|
|
SRC += $(OPUAVTALK)/uavtalk.c
|
|
|
|
SRC += $(OPUAVOBJ)/uavobjectmanager.c
|
2014-09-20 21:02:51 +02:00
|
|
|
SRC += $(OPUAVOBJ)/uavobjectpersistence.c
|
2013-05-31 11:39:49 +02:00
|
|
|
SRC += $(OPUAVOBJ)/eventdispatcher.c
|
2014-12-03 00:50:09 +01:00
|
|
|
SRC += $(PIOSCOMMON)/pios_flashfs_logfs.c
|
|
|
|
SRC += $(PIOSCOMMON)/pios_flash_jedec.c
|
2014-06-06 22:23:02 +02:00
|
|
|
|
2013-05-31 11:39:49 +02:00
|
|
|
#ifeq ($(DEBUG), YES)
|
|
|
|
SRC += $(OPSYSTEM)/dcc_stdio.c
|
|
|
|
SRC += $(OPSYSTEM)/cm3_fault_handlers.c
|
|
|
|
#endif
|
|
|
|
|
|
|
|
## Misc library functions
|
2014-06-06 22:23:02 +02:00
|
|
|
SRC += $(FLIGHTLIB)/instrumentation.c
|
2013-05-31 11:39:49 +02:00
|
|
|
SRC += $(FLIGHTLIB)/paths.c
|
2014-05-19 18:35:18 +02:00
|
|
|
SRC += $(FLIGHTLIB)/plans.c
|
2013-05-31 11:39:49 +02:00
|
|
|
SRC += $(FLIGHTLIB)/WorldMagModel.c
|
|
|
|
SRC += $(FLIGHTLIB)/insgps13state.c
|
2014-09-13 16:14:34 +02:00
|
|
|
SRC += $(FLIGHTLIB)/auxmagsupport.c
|
2014-08-13 15:14:55 +02:00
|
|
|
SRC += $(FLIGHTLIB)/lednotification.c
|
2013-05-31 11:39:49 +02:00
|
|
|
|
|
|
|
## UAVObjects
|
|
|
|
include ./UAVObjects.inc
|
|
|
|
SRC += $(UAVOBJSRC)
|
|
|
|
else
|
|
|
|
## Test Code
|
|
|
|
SRC += $(OPTESTS)/test_common.c
|
|
|
|
SRC += $(OPTESTS)/$(TESTAPP).c
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Optional component libraries
|
|
|
|
include $(FLIGHTLIB)/rscode/library.mk
|
|
|
|
#include $(FLIGHTLIB)/PyMite/pymite.mk
|
|
|
|
|
2015-08-02 17:01:14 +02:00
|
|
|
include $(FLIGHT_ROOT_DIR)/make/apps-defs.mk
|
|
|
|
include $(FLIGHT_ROOT_DIR)/make/common-defs.mk
|