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-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_PrecLand',
|
|
|
|
'AC_Sprayer',
|
2019-11-28 16:21:07 -04:00
|
|
|
'AC_Autorotation',
|
2015-10-09 11:03:59 -03:00
|
|
|
'AC_WPNav',
|
|
|
|
'AP_Camera',
|
|
|
|
'AP_IRLock',
|
|
|
|
'AP_InertialNav',
|
|
|
|
'AP_Motors',
|
|
|
|
'AP_RCMapper',
|
2016-07-21 09:45:13 -03:00
|
|
|
'AP_Avoidance',
|
2016-08-15 03:17:35 -03:00
|
|
|
'AP_AdvancedFailsafe',
|
2017-09-08 23:45:04 -03:00
|
|
|
'AP_SmartRTL',
|
2016-10-13 03:30:30 -03:00
|
|
|
'AP_Stats',
|
2017-01-09 03:46:03 -04:00
|
|
|
'AP_Beacon',
|
|
|
|
'AP_Arming',
|
2017-10-04 23:19:46 -03:00
|
|
|
'AP_WheelEncoder',
|
|
|
|
'AP_Winch',
|
2018-01-25 08:35:42 -04:00
|
|
|
'AP_Follow',
|
2018-03-04 05:41:06 -04:00
|
|
|
'AP_Devo_Telem',
|
2018-06-23 04:11:05 -03:00
|
|
|
'AP_OSD',
|
2018-12-12 23:53:56 -04:00
|
|
|
'AC_AutoTune',
|
2018-11-26 08:21:34 -04:00
|
|
|
'AP_KDECAN',
|
2015-10-09 11:03:59 -03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2017-01-09 05:54:39 -04:00
|
|
|
bld.ap_program(
|
|
|
|
program_name='arducopter',
|
|
|
|
program_groups=['bin', 'copter'],
|
|
|
|
use=vehicle + '_libs',
|
|
|
|
defines=['FRAME_CONFIG=MULTICOPTER_FRAME'],
|
|
|
|
)
|
|
|
|
|
|
|
|
bld.ap_program(
|
|
|
|
program_name='arducopter-heli',
|
2018-04-07 01:30:13 -03:00
|
|
|
program_groups=['bin', 'heli'],
|
2017-01-09 05:54:39 -04:00
|
|
|
use=vehicle + '_libs',
|
|
|
|
defines=['FRAME_CONFIG=HELI_FRAME'],
|
2016-03-24 18:05:21 -03:00
|
|
|
)
|