mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-12-14 19:03:32 +08:00
提交
This commit is contained in:
@ -19,9 +19,9 @@
|
||||
"Pin": 19
|
||||
},
|
||||
"WINDOWS": {
|
||||
"Pin_H": 7,
|
||||
"Pin_L": 10,
|
||||
"WaitTime": 40
|
||||
"Pin_H": 10,
|
||||
"Pin_L": 7,
|
||||
"WaitTime": 80
|
||||
}
|
||||
},
|
||||
"Constant_Temperature": {
|
||||
|
||||
@ -138,6 +138,8 @@ void TemperatureRegulator::setconfig(json jconfig) {
|
||||
|
||||
m_TG_Manager=new TG_Manager();
|
||||
m_TG_Manager->SetPin_V2(Windows_Pin_H,Windows_Pin_L,Cooler_Pin_EN,Hot_Pin_EN,Fan_Pin_H,Fan_Pin_L);
|
||||
m_TG_Manager->Set_Waite_time_for_Windows(Windows_WaitTime);
|
||||
|
||||
// m_TG_Manager->SetPin(pin1_H,pin1_L,pin2_H,pin2_L);
|
||||
if (jconfig.contains("Constant_Temperature")) {
|
||||
if (jconfig["Constant_Temperature"].contains("CoolBegin_Temp_Insight")) {
|
||||
|
||||
@ -135,7 +135,7 @@ void saveData(QString sender,QString qstr)
|
||||
QString path="/home/data/TempData/"+currentTime.toString("yyyy_MM_dd_hh_mm_ss")+".csv";
|
||||
system("mkdir -p /home/data/TempData");
|
||||
datafile=fopen(path.toStdString().c_str(),"a+");
|
||||
fprintf(datafile,QString::fromLocal8Bit("日期, 数据类型, 日期~n").toStdString().c_str());
|
||||
fprintf(datafile,QString::fromLocal8Bit("日期, 数据类型, 日期\n").toStdString().c_str());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user