We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi When i change baudrate to 921600 or others , it's useless , how i config is below :
int baudrate = 921600; float frequency = 8.0; CYdLidar laser; //////////////////////string property///////////////// /// lidar port laser.setlidaropt(LidarPropSerialPort, port.c_str(), port.size()); /// ignore array std::string ignore_array; ignore_array.clear(); laser.setlidaropt(LidarPropIgnoreArray, ignore_array.c_str(), ignore_array.size()); //////////////////////int property///////////////// /// lidar baudrate laser.setlidaropt(LidarPropSerialBaudrate, &baudrate, sizeof(int)); /// abnormal count int optval = 4; laser.setlidaropt(LidarPropAbnormalCheckCount, &optval, sizeof(int)); //////////////////////bool property///////////////// /// fixed angle resolution bool b_optvalue = false; laser.setlidaropt(LidarPropFixedResolution, &b_optvalue, sizeof(bool)); /// rotate 180 laser.setlidaropt(LidarPropReversion, &b_optvalue, sizeof(bool)); /// Counterclockwise laser.setlidaropt(LidarPropInverted, &b_optvalue, sizeof(bool)); b_optvalue = true; laser.setlidaropt(LidarPropAutoReconnect, &b_optvalue, sizeof(bool)); /// intensity b_optvalue = false; laser.setlidaropt(LidarPropIntenstiy, &b_optvalue, sizeof(bool)); //////////////////////float property///////////////// /// unit: ° float f_optvalue = 180.0f; laser.setlidaropt(LidarPropMaxAngle, &f_optvalue, sizeof(float)); f_optvalue = -180.0f; laser.setlidaropt(LidarPropMinAngle, &f_optvalue, sizeof(float)); /// unit: m f_optvalue = 8.f; laser.setlidaropt(LidarPropMaxRange, &f_optvalue, sizeof(float)); f_optvalue = 0.05f; laser.setlidaropt(LidarPropMinRange, &f_optvalue, sizeof(float)); /// unit: Hz laser.setlidaropt(LidarPropScanFrequency, &frequency, sizeof(float)); bool ret = laser.initialize(); if (ret) { laser.turnOn(); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi When i change baudrate to 921600 or others , it's useless , how i config is below :
The text was updated successfully, but these errors were encountered: