function ctd_depth = fix_ctd_depth(d, pitch);

% ctd_depth = fix_ctd_depth(d, pitch);
%
%   Correct CTD depth for attitude of vehicle.
%

dx = 0.4; dy = 0.2;  % position of CTD intake valid for MABay98

ctd_depth = d - (dx .* sin(pitch) - dy .* cos(pitch));
