2015-10-09 11:03:59 -03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
vehicle = bld.path.name
|
2016-01-21 10:04:51 -04:00
|
|
|
bld.ap_stlib(
|
2015-10-09 11:03:59 -03:00
|
|
|
name=vehicle + '_libs',
|
2016-07-25 17:31:08 -03:00
|
|
|
ap_vehicle=vehicle,
|
|
|
|
ap_libraries=bld.ap_common_vehicle_libraries() + [
|
2015-11-27 11:43:09 -04:00
|
|
|
'AP_ADSB',
|
2015-10-09 11:03:59 -03:00
|
|
|
'AC_AttitudeControl',
|
2016-03-24 18:14:52 -03:00
|
|
|
'AC_InputManager',
|
2015-10-09 11:03:59 -03:00
|
|
|
'AC_Fence',
|
2016-06-20 05:26:25 -03:00
|
|
|
'AC_Avoidance',
|
2015-10-09 11:03:59 -03:00
|
|
|
'AC_PID',
|
|
|
|
'AC_PrecLand',
|
|
|
|
'AC_Sprayer',
|
|
|
|
'AC_WPNav',
|
|
|
|
'AP_Camera',
|
|
|
|
'AP_IRLock',
|
|
|
|
'AP_InertialNav',
|
|
|
|
'AP_LandingGear',
|
|
|
|
'AP_Menu',
|
|
|
|
'AP_Motors',
|
|
|
|
'AP_Parachute',
|
|
|
|
'AP_RCMapper',
|
|
|
|
'AP_Relay',
|
|
|
|
'AP_ServoRelayEvents',
|
2016-07-21 09:45:13 -03:00
|
|
|
'AP_Avoidance',
|
2016-08-15 03:17:35 -03:00
|
|
|
'AP_AdvancedFailsafe',
|
2016-10-13 03:30:30 -03:00
|
|
|
'AP_Proximity',
|
|
|
|
'AP_Stats',
|
2016-10-28 19:08:22 -03:00
|
|
|
'AP_Gripper',
|
2016-10-24 02:46:21 -03:00
|
|
|
'AP_Beacon'
|
2015-10-09 11:03:59 -03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2016-03-24 18:05:21 -03:00
|
|
|
frames = (
|
2017-01-09 03:52:19 -04:00
|
|
|
'quad', 'heli',
|
2015-10-09 11:03:59 -03:00
|
|
|
)
|
2016-03-24 18:05:21 -03:00
|
|
|
for frame in frames:
|
|
|
|
frame_config = frame.upper().replace('-', '_') + '_FRAME'
|
|
|
|
bld.ap_program(
|
|
|
|
program_name='arducopter-%s' % frame,
|
|
|
|
program_groups=['bin', 'copter'],
|
|
|
|
use=vehicle + '_libs',
|
|
|
|
defines=['FRAME_CONFIG=%s' % frame_config],
|
|
|
|
)
|