waf: added FMUv3 to build

This commit is contained in:
Andrew Tridgell 2016-12-10 13:05:08 +11:00
parent bd0a0510ed
commit 74a871576c
3 changed files with 33 additions and 0 deletions

View File

@ -468,6 +468,12 @@ class px4_v2(px4):
super(px4_v2, self).__init__()
self.version = '2'
class px4_v3(px4):
name = 'px4-v3'
def __init__(self):
super(px4_v3, self).__init__()
self.version = '3'
class px4_v4(px4):
name = 'px4-v4'
def __init__(self):

View File

@ -230,6 +230,8 @@ def configure(cfg):
if env.PX4_VERSION == '1':
bootloader_name = 'px4fmu_bl.bin'
elif env.PX4_VERSION in ['2','3']:
bootloader_name = 'px4fmuv2_bl.bin'
else:
bootloader_name = 'px4fmuv%s_bl.bin' % env.get_flat('PX4_VERSION')

View File

@ -0,0 +1,25 @@
include(configs/nuttx_px4fmu-common_apm)
list(APPEND config_module_list
drivers/lsm303d
drivers/l3gd20
drivers/mpu9250
drivers/mpu6000
drivers/hmc5883
drivers/ms5611
drivers/boards/px4fmu-v2
drivers/pwm_input
modules/uavcan
lib/mathlib
drivers/px4io
drivers/oreoled
)
list(APPEND config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_board
px4io-v2
)