mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-18 19:39:43 +08:00
添加了 温湿度传感器控制代码 已能读取 等待拷机测试
This commit is contained in:
8
main.cpp
8
main.cpp
@ -5,6 +5,7 @@
|
||||
#include "MainDataGrabber.h"
|
||||
#include "DataFileProcessor.h"
|
||||
#include "Scheduler.h"
|
||||
#include "GY39Controller.h"
|
||||
using namespace std;
|
||||
#pragma once
|
||||
|
||||
@ -14,8 +15,11 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication a(argc, argv);
|
||||
//////////////////////////////////////////////////////////////////////////logger
|
||||
//QT_LOG::ZZ_InitLogger(QCoreApplication::applicationDirPath() + "/Log/");
|
||||
|
||||
|
||||
float fTemp, fHum;
|
||||
GY39Controller m_test123;
|
||||
m_test123.Initialize("COM11");
|
||||
m_test123.GetHumiture(fTemp, fHum);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////configger
|
||||
DataFileProcessor testdp;
|
||||
ZZ_SysConfigger test;
|
||||
|
Reference in New Issue
Block a user