function [azspeed,elspeed]=scanspeed_2(lidar)
az=acosd(cosd(unwrap(lidar.azimuth(:,1)*pi/180)*180/pi));
mu=az;
azspeed=diff(mu);
mu=boxsmooth(lidar.elevation(:,1),60);
elspeed=diff(mu);


return
end