mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 19:49:42 +08:00
任立新 修改该温控系统的逻辑
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
//
|
||||
// Created by xin on 25-5-8.
|
||||
//
|
||||
|
||||
#ifndef SUNUPANDDOWN_H
|
||||
#define SUNUPANDDOWN_H
|
||||
struct SunInfo {
|
||||
double sunrise_h; // <20>ճ<EFBFBD>ʱ<EFBFBD>䣨Сʱ<D0A1><CAB1>
|
||||
double sunrise_m; // <20>ճ<EFBFBD>ʱ<EFBFBD>䣨<EFBFBD><E4A3A8><EFBFBD>ӣ<EFBFBD>
|
||||
double sunset_h; // <20><><EFBFBD><EFBFBD>ʱ<EFBFBD>䣨Сʱ<D0A1><CAB1>
|
||||
double sunset_m; // <20><><EFBFBD><EFBFBD>ʱ<EFBFBD>䣨<EFBFBD><E4A3A8><EFBFBD>ӣ<EFBFBD>
|
||||
bool hasSunlight; // <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
};
|
||||
|
||||
SunInfo calculateSunriseSunset(int year, int month, int day, double latitude, double longitude);
|
||||
|
||||
void calculateSunriseSunset(int year, int month, int day, double latitude, double longitude,
|
||||
double &sunrise, double &sunset, bool &hasSunlight);
|
||||
|
||||
|
||||
|
||||
#endif //SUNUPANDDOWN_H
|
Reference in New Issue
Block a user