waf: added FMUv3 to build
This commit is contained in:
parent
bd0a0510ed
commit
74a871576c
@ -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):
|
||||
|
@ -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')
|
||||
|
||||
|
@ -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
|
||||
)
|
Loading…
Reference in New Issue
Block a user