Skip to main content
. 2023 Jan 4;23(2):578. doi: 10.3390/s23020578
Algorithm 1 Proposed MSAO Algorithm
  • Require: 

    Coordinate of the AUV pa,t, coordinates of the current target CH ci, coordinates of the next target CH cj, UAC communication radius dac and UOC communication radius dop.

  •   1:

    ifdsegi>dac and m=ac then

  •   2:

        Calculate the data collection hover position pci,ac by (22).

  •   3:

        Calculate steering angle Ψac,t by (23).

  •   4:

    else ifdsegidac and dsegi>dop and m=ac then

  •   5:

        The data collection hover position is the vertical foot pri,ac

         from ci to the segment pa,tcj¯.

  •   6:

        Calculate steering angle Ψac,t by (23).

  •   7:

    else ifdsegi>dop and m=op then

  •   8:

        Calculate the data collection hover position pri,op by (22).

  •   9:

        Calculate steering angle Ψop,t by (23).

  • 10:

    else ifdsegidopthen

  • 11:

        The data collection hover position is the vertical foot pri,op

         from ci to the segment pa,tcj¯.

  • 12:

        Calculate steering angle Ψop,t by (23).

  • 13:

    end if

  • Ensure: 

    The steering angle of the AUV: Ψm,t.