新增 + 修改

1. 分离空间维(水平)和光谱维(垂直)的bin1和bin2有效窗口的参数:configfile.cpp和ximeaimager.cpp都需要修改相应代码;
2. 为了减少光谱仪的热量累积,加入了usb开电、断电功能,udpserver.cpp需要增加相应开电、断电代码:
3. 使用了云一峰的新板子,linux识别的惯导串口号改变:sbgrecorder.cpp;
This commit is contained in:
tangchao0503
2022-10-13 16:30:40 +08:00
parent 374a48022b
commit 87a35f5dd4
6 changed files with 123 additions and 54 deletions

View File

@ -88,6 +88,10 @@ void UdpServer::processPendingDatagrams()
case 1://启动系统: 打开sbg串口并采集数据打开光谱仪
{
std::cout<<"1代表启动系统!"<<std::endl;
system("sudo gpio write 10 1");
sleep(4);//睡眠4秒等待电脑打开usb电源以便给相机供电
emit systemStart();
break;
@ -110,6 +114,9 @@ void UdpServer::processPendingDatagrams()
emit systemStop();
sleep(4);//睡眠4秒等待
system("sudo gpio write 10 0");
//QCoreApplication::quit();
break;
}