Skip to content

Commit

Permalink
Copter: set pos_control pointer in AC_Avoid
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Apr 23, 2024
1 parent 156e21c commit ea1d443
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ArduCopter/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ void Copter::allocate_motors(void)
AP_BoardConfig::allocation_error("PosControl");
}
AP_Param::load_object_from_eeprom(pos_control, pos_control->var_info);
#if AP_AVOIDANCE_ENABLED
avoid.set_pos_control(pos_control);
#endif

#if AP_OAPATHPLANNER_ENABLED
wp_nav = new AC_WPNav_OA(inertial_nav, *ahrs_view, *pos_control, *attitude_control);
Expand Down

0 comments on commit ea1d443

Please sign in to comment.