Velodyne Acoustics HDL-64E S2.1 user manual APPendix d MatLaB saMPLe code

Page 24

aPPendix d: MatLaB saMPLe code

HDL-64E S2 and S2.1 User’s Manual

%Add high and low bytes of Rotational Correction Factor together and check if positive or negative correction factor.

RotationalCorr(i)=temp(5)*256+temp(4); if RotationalCorr(i)>32768

RotationalCorr(i)=RotationalCorr(i)-65536;

End

%Scale Rotational Correction Factor by Diving by 100. RotationalCorr(i)=RotationalCorr(i)/100;

%Add high and low bytes of remaining 2 Byte Correction Factors together and check if positive or negative correction factor, if necessary. Scale dimensions in mm to cm by Diving by 10. Scale Focal Slope by Dividing by 10.

DistanceCorr(i)=(temp(7)*256+temp(6))/10;

DistanceCorrX(i)=(temp1(2)*256+temp1(1))/10;

DistanceCorrY(i)=(temp1(4)*256+temp1(3))/10;

VerticalOffset(i)=(temp1(6)*256+temp1(5))/10;

HorizonOffset(i)=(temp2(1)*256+temp1(7)); if HorizonOffset(i)>32768

HorizonOffset(i)=HorizonOffset(i)-65536;

end HorizonOffset(i)=HorizonOffset(i)/10; FocalDist(i)=temp2(3)*256+temp2(2); if FocalDist(i)>32768

FocalDist(i)=FocalDist(i)-65536;

end FocalDist(i)=FocalDist(i)/10; FocalSlope(i)=temp2(5)*256+temp2(4); if FocalSlope(i)>32768

FocalSlope(i)=FocalSlope(i)-65536;

end FocalSlope(i)=FocalSlope(i)/10;

% Maximum and Minimum Intensity only 1 Byte each. MinIntensity(i)=temp2(6); MaxIntensity(i)=temp2(7);

End

%Done with correction factors.

%Get Unit Parameter Data s=Ind(1)

char(status(s-80:s+6)) value(s-80:s+6)

[ 21 ]

Image 24 Contents
HDL-64E S2 and S2.1 E R ’ S M a N U a L a N DFront/Back Mounting Side Mounting Top Mounting Wiring BoxReading Calibration and Sensor Parameter Data Last Six Bytes ExamplesPage Introduction S2.1Box PrinciPLes of oPeration HDL-64E S2 design overviewInstaLLation oVerVieW Front/Back MountingSide Mounting Side HDL mounting illustrationTop Mounting Top HDL mounting illustrationWiring UsaGeUse the Included Point-cloud Viewer Develop Your Own Application-specific Point-cloud ViewerEstablish communication with the sensor Db.xml Calibration ParametersParameter Unit Description Values Change Run-Time Parameters Sample Batch File .batSample SERCMD.txt file Available commands Command Description ParametersControl Spin Rate Limit Horizontal FOV Data CollectedDefine Sensor Memory IP Source and Destination Addresses DestinationUpload Calibration Data External GPS Time SynchronizationGPS Equipment Packet Format and Status Byte for GPS Time Stamping Time Stamping Accuracy RulesGPS Connection Timestamp Info Accuracy Laser Firing Sequence and TimingFirMWare uPdate HDL software update screen captureIsometric View APPendix a MechanicaL draWinGsAPPendix B WirinG diaGraM Install APPendix c diGitaL sensor recorder dsr Digital Sensor Recorder DSR APPendix c diGitaL sensor recorder dsr Click the Record buttonZoom Axis RotationShift RotationalAPPendix d MatLaB saMPLe code APPendix d MatLaB saMPLe code Status Type Ascii Value Interpretation and Scaling APPendix e data PacKet forMat Data Packet FormatFirmware version 4.07 sheet 1 Firmware version 4.07 sheet 2 Firmware version 4.07 sheet 3 Last Six Bytes Examples 40 = Ver Packet #7657 Packet #7658APPendix f duaL tWo Point caLiBration MethodoLoGy Dual Two Point Calibration Methodology and Code SamplesCoordinate Calculation Algorithm Sample Code APPendix f duaL tWo Point caLiBration MethodoLoGy Intensity Compensation vs Distance Calibration WindowIntensity Value Corrected by Distance Code APPendix f duaL tWo Point caLiBration MethodoLoGy APPendix G ethernet transit tiMinG taBLe HDL-64E Ethernet Timing Table OverviewHow to use this table The table represents a sensor Laser Numbers 0-7 & 32-39 Lower,UpperAPPendix h Laser and detector arranGeMent APPendix i anGuLar resoLution RPM RPSTrouBLeshootinG Problem ResolutionSerVice and Maintenance SPecifications Velodyne LiDAR, Inc