function [ B ] = ADSB( Ts, M1 )
%ADS-B function

tr = 120e-6; %frame time duration
Fs = 1/Ts; %vyorkovaci frekvence
data = tr*Fs+1; %celkovy pocet symbolu
A = ((data - 1)/tr)*8e-6; %pocet symbolu patrici preambuli

B = preamble(Ts); %vytvoreni preambule
B(A+1:data) = kodovaniadsb(Ts, M1); %doplneni o zpravu vcetne CRC

end

