2015-12-30 18:57:56 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
vehicle = bld.path.name
|
2016-02-15 18:48:31 -04:00
|
|
|
bld.ap_stlib(
|
2015-12-30 18:57:56 -04:00
|
|
|
name=vehicle + '_libs',
|
|
|
|
vehicle=vehicle,
|
2016-02-15 18:48:31 -04:00
|
|
|
libraries=bld.ap_common_vehicle_libraries() + [
|
2016-07-05 21:18:58 -03:00
|
|
|
'AP_ADSB',
|
2015-12-30 18:57:56 -04:00
|
|
|
'AC_AttitudeControl',
|
2016-04-03 14:19:09 -03:00
|
|
|
'AC_InputManager',
|
2015-12-30 18:57:56 -04:00
|
|
|
'AC_Fence',
|
2016-07-05 21:18:58 -03:00
|
|
|
'AC_Avoidance',
|
2015-12-30 18:57:56 -04:00
|
|
|
'AC_PID',
|
|
|
|
'AC_PrecLand',
|
|
|
|
'AC_Sprayer',
|
|
|
|
'AC_WPNav',
|
|
|
|
'AP_Camera',
|
|
|
|
'AP_IRLock',
|
|
|
|
'AP_InertialNav',
|
2016-03-12 11:14:55 -04:00
|
|
|
'AP_JSButton',
|
2015-12-30 18:57:56 -04:00
|
|
|
'AP_LandingGear',
|
2017-02-07 15:43:41 -04:00
|
|
|
'AP_LeakDetector',
|
2015-12-30 18:57:56 -04:00
|
|
|
'AP_Menu',
|
|
|
|
'AP_Motors',
|
|
|
|
'AP_Mount',
|
|
|
|
'AP_Parachute',
|
|
|
|
'AP_RCMapper',
|
|
|
|
'AP_RPM',
|
|
|
|
'AP_RSSI',
|
|
|
|
'AP_Relay',
|
|
|
|
'AP_ServoRelayEvents',
|
2016-11-17 01:12:06 -04:00
|
|
|
'AP_Proximity',
|
|
|
|
'AP_Gripper',
|
2015-12-30 18:57:56 -04:00
|
|
|
],
|
2016-01-16 03:34:43 -04:00
|
|
|
use='mavlink',
|
2015-12-30 18:57:56 -04:00
|
|
|
)
|
|
|
|
|
2016-04-03 14:19:09 -03:00
|
|
|
frames = (
|
2016-05-18 02:56:30 -03:00
|
|
|
'bluerov','vectored','vectored6DOF','simplerov','vectored90'
|
2015-12-30 18:57:56 -04:00
|
|
|
)
|
2016-04-03 14:19:09 -03:00
|
|
|
|
|
|
|
for frame in frames:
|
|
|
|
frame_config = frame.upper().replace('-','_') + '_FRAME'
|
|
|
|
bld.ap_program(
|
|
|
|
program_name='ardusub-%s' % frame,
|
|
|
|
program_groups=['bin', 'sub'],
|
|
|
|
use=vehicle + '_libs',
|
|
|
|
defines=['FRAME_CONFIG=%s' % frame_config],
|
|
|
|
)
|