测试通过,目前还有相机的控制指令没有完成:
This commit is contained in:
parent
b14346121e
commit
c96fc7fb63
@ -18,10 +18,11 @@ DialogCamSet::~DialogCamSet()
|
|||||||
void DialogCamSet::on_pushButton_2_clicked()
|
void DialogCamSet::on_pushButton_2_clicked()
|
||||||
{
|
{
|
||||||
QString portName = ui->comboBox->currentText();
|
QString portName = ui->comboBox->currentText();
|
||||||
if(ph->openPort(portName)){
|
if(!ph->openPort(portName)){
|
||||||
QMessageBox::critical(this,"Error","Connect "+portName +" failed");
|
QMessageBox::critical(this,"Error","Connect "+portName +" Failed");
|
||||||
|
}else{
|
||||||
|
QMessageBox::information(this,"Success","Connect "+portName +" Successfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -144,12 +144,16 @@ void MainWindow::on_pushButton_6_clicked()
|
|||||||
void MainWindow::on_pushButton_clicked()
|
void MainWindow::on_pushButton_clicked()
|
||||||
{
|
{
|
||||||
cam1->saveFlag=true;
|
cam1->saveFlag=true;
|
||||||
|
onLogPrint1("start saving ...");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_pushButton_7_clicked()
|
void MainWindow::on_pushButton_7_clicked()
|
||||||
{
|
{
|
||||||
|
|
||||||
cam1->saveFlag=false;
|
cam1->saveFlag=false;
|
||||||
|
onLogPrint1("stop saving ...");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user