添加管控软件和相机的通讯

This commit is contained in:
lidg
2026-10-27 22:14:53 +08:00
parent c8cd533d9b
commit 069eb902ed
21 changed files with 572 additions and 26 deletions
+11
View File
@@ -329,3 +329,14 @@ bool CameraManager::applyWhiteBalanceOnce(CamIndex idx)
return false;
}
}
bool CameraManager::whiteBalanceFinished(CamIndex idx, bool& finished)
{
finished=false;
if(!m_connected[idx]||m_device[idx].IsNull())return false;
try {
const auto value=m_device[idx]->GetRemoteFeatureControl()->GetEnumFeature("BalanceWhiteAuto")->GetValue();
finished=gxToQString(value)==QStringLiteral("Off");
return true;
}catch(CGalaxyException& e){emit errorOccurred(idx,QString("Read white balance state failed: %1").arg(e.what()));return false;}
}