diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index b5e3139228..d3a6964251 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -56,7 +56,7 @@ #include // PID library (2-axis) #include // P library #include // Attitude control library -#include // Position control library +#include // Position control library #include // RC Channel Library #include // AP Motors library #include // Range finder library @@ -405,7 +405,7 @@ private: // To-Do: move inertial nav up or other navigation variables down here AC_AttitudeControl_Sub attitude_control; - AC_PosControl pos_control; + AC_PosControl_Sub pos_control; #if AVOIDANCE_ENABLED == ENABLED AC_Avoid avoid; diff --git a/ArduSub/make.inc b/ArduSub/make.inc index 67d4339df0..23c910d2bc 100644 --- a/ArduSub/make.inc +++ b/ArduSub/make.inc @@ -22,7 +22,7 @@ LIBRARIES += AC_PID LIBRARIES += AC_PI_2D LIBRARIES += AC_P LIBRARIES += AC_AttitudeControl -LIBRARIES += AC_PosControl +LIBRARIES += AC_PosControl_Sub LIBRARIES += RC_Channel LIBRARIES += AP_Motors LIBRARIES += AP_RangeFinder