Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-22 14:12:32 +08:00
parent ef4eae6128
commit 12904d5507
4 changed files with 29 additions and 9 deletions

View File

@ -157,8 +157,8 @@ bool UpdateData(String path,uint8_t *data, size_t lenth, String Contenttype = ""
void setup()
{
sun_latitude = 39.6;
sun_longitude = 116.3;
sun_latitude = 39.5;
sun_longitude = 117.6;
// Serial2.begin(115200, SERIAL_8N1, SIMUART_RX, SIMUART_TX);
//关闭光谱仪
pinMode(36,OUTPUT);
@ -711,10 +711,10 @@ void Task1(void *pvParameters)
float temperature[8];
getall_temp(temperature);
vTaskDelay(100);
getall_temp(temperature);
vTaskDelay(100);
getall_temp(temperature);
// vTaskDelay(100);
// getall_temp(temperature);
// vTaskDelay(100);
// getall_temp(temperature);
for(uint8_t n=0; n<8 ;n++)
{
if(temperature[n] < -120) write_log(log_path,"temperature " + String(n+1) +":" + String(temperature[n])+"This sensor is broken.",20);
@ -853,9 +853,10 @@ void task_4G_mode(void *pvParameters)
doc_4G["Voltage_value"] = Voltage;
}
getall_temp(temperature);
// getall_temp(temperature);
for(uint8_t n=0; n<8 ;n++)
{
temperature[n] = IS11_datastruct_fanshelv.temprature[n];
if((temperature[n] < -10) || (temperature[n] > 50))
{
warn_sta = true;
@ -918,6 +919,7 @@ void task_4G_mode(void *pvParameters)
Serial0.println("now_time " + String(now_time));
Serial0.println("start_time " + String(start_time));
Serial0.println("stop_time " + String(stop_time));
// vTaskDelay(1000 * 1);
if((now_time >= start_time) && (now_time < stop_time))
{
is11Sensor->TakeOneJob();