|
@@ -218,7 +218,7 @@ int main(int argc, char *argv[])
|
|
|
snprintf(gstr_devmode,255,"0");//默认端口号
|
|
|
snprintf(gstr_yaml,255," ");
|
|
|
snprintf(gstr_modulename,255,"driver_lidar_leishenc16");
|
|
|
- snprintf(gstr_devtype,255,"ch128x1");
|
|
|
+ snprintf(gstr_devtype,255,"ch128x1"); //ch128x1 cb64s1_a
|
|
|
|
|
|
int nRtn = GetOptLong(argc,argv);
|
|
|
if(nRtn == 1) //show help,so exit.
|
|
@@ -231,6 +231,8 @@ int main(int argc, char *argv[])
|
|
|
decodeyaml(gstr_yaml);
|
|
|
}
|
|
|
|
|
|
+ std::cout<<" lidar type: "<<gstr_devtype<<std::endl;
|
|
|
+
|
|
|
leishenchx * pleishenchx = new leishenchx(gstr_memname,atof(gstr_rollang),atof(gstr_inclinationang_xaxis),
|
|
|
atof(gstr_inclinationang_yaxis),atoi(gstr_devmode),static_cast<unsigned short>(atoi(gstr_port)),
|
|
|
static_cast<unsigned short>(atoi(gstr_devport)),std::string(gstr_devtype));
|