voyager/move.py
def leeway_velocity(w, Sl, Yt):
        """Calculates the leeway wind velocity from vessel parameters and
        wind speed.

        Args:
            w (np.array): The wind velocity with two components
            Sl (float): vessel parameter
            Yt (float): vessel parameter

        Returns:
            np.array: The velocity from leeway wind
        """

        # Convert from m/s to knots
        w = Displacement.si_to_knots(w)

        leeway = np.zeros_like(w)

        if np.abs(w[0]) > 6:
            leeway[0] = (Sl * w[0]) + Yt
        else:
            leeway[0] = (Sl + Yt / 6) * w[0]

        if np.abs(w[1]) > 6:
            leeway[1] = (Sl * w[1]) + Yt
        else:
            leeway[1] = (Sl + Yt / 6) * w[1]

        return leeway
Calculates the leeway wind velocity from vessel parameters and
        wind speed.

        Args:
            w (np.array): The wind velocity with two components
            Sl (float): vessel parameter
            Yt (float): vessel parameter

        Returns:
            np.array: The velocity from leeway wind
        
Calculates the leeway wind velocity from vessel parameters and
wind speed.
Calculates the leeway wind velocity from vessel parameters and wind speed .
def leeway_velocity(w, Sl, Yt):
        w = Displacement.si_to_knots(w)
        leeway = np.zeros_like(w)
        if np.abs(w[0]) > 6:
            leeway[0] = (Sl * w[0]) + Yt
        else:
            leeway[0] = (Sl + Yt / 6) * w[0]
        if np.abs(w[1]) > 6:
            leeway[1] = (Sl * w[1]) + Yt
        else:
            leeway[1] = (Sl + Yt / 6) * w[1]
        return leeway
def leeway_velocity ( w , Sl , Yt ) : w = Displacement . si_to_knots ( w ) leeway = np . zeros_like ( w ) if np . abs ( w [ 0 ] ) > 6 : leeway [ 0 ] = ( Sl * w [ 0 ] ) + Yt else : leeway [ 0 ] = ( Sl + Yt / 6 ) * w [ 0 ] if np . abs ( w [ 1 ] ) > 6 : leeway [ 1 ] = ( Sl * w [ 1 ] ) + Yt else : leeway [ 1 ] = ( Sl + Yt / 6 ) * w [ 1 ] return leeway
Calculates the leeway wind velocity from vessel parameters and
wind speed.
Calculates the leeway wind velocity from vessel parameters and wind speed .
"""Calculates the leeway wind velocity from vessel parameters and
        wind speed.

        Args:
            w (np.array): The wind velocity with two components
            Sl (float): vessel parameter
            Yt (float): vessel parameter

        Returns:
            np.array: The velocity from leeway wind
        """ # Convert from m/s to knots
The velocity from leeway wind
The velocity from leeway wind
np.array
w
The wind velocity with two components
The wind velocity with two components
Sl
None
Yt
None