提交 增加gpio配置

This commit is contained in:
xin
2026-04-03 11:09:51 +08:00
parent 9e003b2ee7
commit 492b5a9a02
4 changed files with 31 additions and 3 deletions

View File

@ -141,11 +141,16 @@ int CMainDataGrabber::InitLS()
}
else
{
DSSOne.strChannelA = qstrChannel.toStdString()[0];
DSSOne.strChannelA =qstrChannel.toStdString()[0];
DSSOne.strChannelB = qstrChannel.toStdString()[1];
DSSOne.iChannelA = 1;
DSSOne.iChannelB = 1;
}
if (m_struLinearShutterContext.usGPIOChannelAPin!="null"&& m_struLinearShutterContext.usGPIOChannelBPin!="null") {
DSSOne.strChannelA = m_struLinearShutterContext.usGPIOChannelAPin;
DSSOne.strChannelB = m_struLinearShutterContext.usGPIOChannelBPin;
}
qDebug()<< "Debugging GPIO Init Finished. Channel A Pin:"<< QString::fromStdString(DSSOne.strChannelA) << " Channel B Pin:"<< QString::fromStdString(DSSOne.strChannelB);
m_vecDSS.push_back(DSSOne);