forked from xin/TowerOptoSifAndSpectral
程序重命名及版本更新
- 程序名从 TowerOptoSifAndSpectral 更名为 AirOptoSifAndSpectral - 版本从 2.1.5 更新至 2.1.9 - GPIO 控制逻辑修改:引脚 1 和 12 输出改为 0 - 新增 dpkg preinst 脚本处理冲突文件
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -146,6 +146,13 @@ int CMainDataGrabber::InitLS()
|
||||
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);
|
||||
|
||||
@ -587,7 +594,7 @@ int CMainDataGrabber::GrabOnceFinished()
|
||||
|
||||
qDebug() << qstrCMD_A;
|
||||
qDebug() << qstrCMD_B;
|
||||
Delay_MSec(200);
|
||||
Delay_MSec(200);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@ -85,8 +85,9 @@ int Scheduler::OnTimeCounter()
|
||||
m_iFlagIsOnRestart = 1;
|
||||
}
|
||||
emit SignalZeroHoldCurrent();
|
||||
system("gpio write 1 0");//<2F>豸<EFBFBD>ϵ<EFBFBD>
|
||||
qDebug() << "gpio write 1 0......"<<endl;
|
||||
system("gpio write 1 1");//<2F>豸<EFBFBD>ϵ<EFBFBD>
|
||||
system("gpio write 12 1");//<2F>豸<EFBFBD>ϵ<EFBFBD>
|
||||
qDebug() << "gpio write 1 1......"<<endl;
|
||||
qDebug() << "Non working time. Idling......";
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user