function Bandwidth( Altitude, SlantRange )

% Computes the approximate data bandwiths (and related parameters) for the Thales configuration.
% Input: Altitude and slant range in m.

% Assume altitude is 20% of water depth.
%Altitude   = Depth / 0.2;

% Compute the average bytes per ping (including headers) for each of the sonar (sub)systems.
BytesPerPing = Bandwidth7k( SlantRange ) + BandwidthEdgeTechSSS( SlantRange ) + BandwidthEdgeTechSBP( Altitude );

% Estimate the hourly bandwith of the sundry sensors.
SundrySensorHourlyRate =  SundrySensorRatePerHour;

% Max ping rate based on slant range (theoretical maximum).
MaxPingRate = 1500.0 / ( 2.0 * SlantRange );

% Total estimated system hourly bandwidth.
AggregateHourlyBandwidth = ( BytesPerPing * ( 3600.0 / MaxPingRate ) ) + SundrySensorHourlyRate;

BytesToMegaBytes = 1.0 / ( 1024.0 * 1024.0 );

% Finally, display our results.
fprintf( 'Max ping rate:             %.1f pings/sec\n',		MaxPingRate );
fprintf( 'Total bytes per ping:      %.0f bytes\n',			BytesPerPing );
fprintf( 'Sundry sensor bandwidh:    %.0f bytes/hour\n',		SundrySensorHourlyRate );
fprintf( 'Estimated total bandwidth: %.2f Mbytes/hour\n',	AggregateHourlyBandwidth * BytesToMegaBytes  );
