function A=getdata(B)

A=zeros(3,1);

if numel(B)==6
   for c=1:3
      A(c)=twoscomp16(B(c*2-1:c*2));
   end
end