From a25d4eb86dd5c195bfb7c5402ce717dc19219a62 Mon Sep 17 00:00:00 2001 From: xin Date: Mon, 28 Feb 2022 18:32:20 +0800 Subject: [PATCH] average --- othersoft/shuttercali/project/LocationCali/main.cpp | 1 - othersoft/shuttercali/source_rlx/sensor/SensorOptoSky.cpp | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/othersoft/shuttercali/project/LocationCali/main.cpp b/othersoft/shuttercali/project/LocationCali/main.cpp index a7a4587..feb4ac8 100644 --- a/othersoft/shuttercali/project/LocationCali/main.cpp +++ b/othersoft/shuttercali/project/LocationCali/main.cpp @@ -124,7 +124,6 @@ int main(int argc, char* argv[]) - aa->Settingshuttertime(shuttertime); aa->GetOnePlot(oneplot); diff --git a/othersoft/shuttercali/source_rlx/sensor/SensorOptoSky.cpp b/othersoft/shuttercali/source_rlx/sensor/SensorOptoSky.cpp index e4246b4..47e318f 100644 --- a/othersoft/shuttercali/source_rlx/sensor/SensorOptoSky.cpp +++ b/othersoft/shuttercali/source_rlx/sensor/SensorOptoSky.cpp @@ -38,6 +38,7 @@ bool SensorOptoSky::initSensor(int id /*= 0*/) } SensorInfo = GetSensorInfo(); + float a = GettingTempratrue(); //SendComment() return true; @@ -132,6 +133,9 @@ STRSensorInfo SensorOptoSky::GetSensorInfo() SendComment(SET_AVERAGE_NUMBER, bbb); GetReturn(SET_AVERAGE_NUMBER, bbb); se.maxValue = 65535; + bbb[0] = 0x00; + bbb[1] = 0x01; + SendComment(SET_AVERAGE_NUMBER,bbb); return se; }