From 34c977f0466fc5c15622b404ef3f7da4513e7dbe Mon Sep 17 00:00:00 2001 From: Kevin Lopez Alvarez Date: Tue, 20 Jun 2017 13:13:22 +0200 Subject: [PATCH] waf: Initial waf support for ppro --- Tools/ardupilotwaf/boards.py | 10 ++++++++++ .../px4/cmake/configs/nuttx_px4fmu-v4pro_apm.cmake | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Tools/ardupilotwaf/px4/cmake/configs/nuttx_px4fmu-v4pro_apm.cmake diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 81a56da827..a2ef49aebc 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -566,6 +566,16 @@ class px4_v4(px4): self.romfs_exclude(['oreoled.bin']) self.with_uavcan = True +class px4_v4pro(px4): + name = 'px4-v4pro' + def __init__(self): + super(px4_v4pro, self).__init__() + self.bootloader_name = 'px4fmuv4pro_bl.bin' + self.board_name = 'px4fmu-v4pro' + self.px4io_name = 'px4io-v2' + self.romfs_exclude(['oreoled.bin']) + self.with_uavcan = True + class aerofc_v1(px4): name = 'aerofc-v1' def __init__(self): diff --git a/Tools/ardupilotwaf/px4/cmake/configs/nuttx_px4fmu-v4pro_apm.cmake b/Tools/ardupilotwaf/px4/cmake/configs/nuttx_px4fmu-v4pro_apm.cmake new file mode 100644 index 0000000000..07dd66609a --- /dev/null +++ b/Tools/ardupilotwaf/px4/cmake/configs/nuttx_px4fmu-v4pro_apm.cmake @@ -0,0 +1,11 @@ +include(configs/nuttx_px4fmu-common_apm) + +list(APPEND config_module_list + drivers/boards/px4fmu-v4pro + drivers/pwm_input + drivers/px4io +) + +set(config_io_board + px4io-v2 +)