Skip to content

Commit 61d1641

Browse files
committed
APM_Control: link example against AP_Avoidance
Fixes: /usr/bin/ld: lib/libAP_FW_Controller_test_libs.a(RC_Channel.cpp.1.o): in function `RC_Channel::do_aux_function_avoid_adsb(RC_Channel::AuxSwitchPos)': RC_Channel.cpp:(.text._ZN10RC_Channel26do_aux_function_avoid_adsbENS_12AuxSwitchPosE+0xd): undefined reference to `AP::ap_avoidance()' collect2: error: ld returned 1 exit status several other tools (eg. Replay) do the same thing
1 parent 8a674f2 commit 61d1641

File tree

1 file changed

+4
-1
lines changed
  • libraries/APM_Control/examples/AP_FW_Controller_test

1 file changed

+4
-1
lines changed

libraries/APM_Control/examples/AP_FW_Controller_test/wscript

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ def build(bld):
1010
name='AP_FW_Controller_test_libs',
1111
ap_vehicle='UNKNOWN',
1212
ap_libraries=bld.ap_common_vehicle_libraries() + [
13-
'SITL', 'APM_Control', 'AP_AdvancedFailsafe',
13+
'SITL',
14+
'APM_Control',
15+
'AP_AdvancedFailsafe',
16+
'AP_Avoidance',
1417
],
1518
)
1619

0 commit comments

Comments
 (0)