feat: 添加点云着色按钮 适配调整后的下位机图像采集方式
This commit is contained in:
@@ -134,23 +134,8 @@ bool NetworkManager::sendStopCommand()
|
||||
|
||||
bool NetworkManager::sendExposureCommand(int exposureTime)
|
||||
{
|
||||
// 同时发送结构光曝光命令(UART控制激光器,单位μs)
|
||||
QString exposureCommand = QString("EXPOSURE:%1").arg(exposureTime);
|
||||
bool success1 = sendCommand(exposureCommand);
|
||||
|
||||
// 同时发送红外相机曝光命令(通过触发脉冲宽度控制,单位μs)
|
||||
// 下位机会将此值用作manual_trigger_pulse()的脉冲宽度参数
|
||||
// 脉冲宽度直接决定相机的实际曝光时间
|
||||
int irExposure = exposureTime;
|
||||
|
||||
// 限制在有效范围内(1000μs ~ 100000μs,避免脉冲太短导致相机无法触发)
|
||||
if (irExposure < 1000) irExposure = 1000;
|
||||
if (irExposure > 100000) irExposure = 100000;
|
||||
|
||||
QString irExposureCommand = QString("IR_EXPOSURE:%1").arg(irExposure);
|
||||
bool success2 = sendCommand(irExposureCommand);
|
||||
|
||||
return success1 && success2;
|
||||
return sendCommand(exposureCommand);
|
||||
}
|
||||
|
||||
// ========== 传输开关命令 ==========
|
||||
|
||||
Reference in New Issue
Block a user