This commit is contained in:
2026-07-13 11:41:39 +08:00
parent 8be32f4e57
commit dac6f54671
3 changed files with 33 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"Jason2866.esp-decoder",
"pioarduino.pioarduino-ide",
"platformio.platformio-ide"
],
"unwantedRecommendations": [

View File

@ -0,0 +1,9 @@
{
"folders": [
{
"name": "IS3_esp32",
"path": ".."
}
],
"settings": {}
}

View File

@ -63,15 +63,30 @@ void read_task(void *pvParameters)
if(data_length > 0) commander_run(command_data, data_length);
// if(stop_shutter_flag) stop_shutter ++;
// if(stop_shutter == 50)
// {
// shutter_stop();
// stop_shutter_flag = false;
// uint8_t d = 1;
// Send_Data(shutter_command,&d,1);
// stop_shutter = 0;
// }
if(stop_shutter_flag) stop_shutter ++;
if(stop_shutter == 50)
{
shutter_stop();
}
if(stop_shutter >= (Global_shutter_now + 50))
{
stop_shutter_flag = false;
uint8_t d = 1;
Send_Data(shutter_command,&d,1);
stop_shutter = 0;
}
vTaskDelay(1);
}
}
@ -244,12 +259,16 @@ void send_data_task(void *pvParameters)
uint16_t send_buff[517];
while (1)
{
xEventGroupClearBits(community_event_group,Send_data_bit);
xEventGroupWaitBits(community_event_group,Send_data_bit,pdTRUE,pdFALSE,portMAX_DELAY);
// xEventGroupWaitBits(sensor_event_group,SENSOR_READ_DONE,pdTRUE,pdFALSE,portMAX_DELAY);
// get_sensor_data(send_buff,Global_shutter_now*0.9);
get_sensor_data(send_buff);
// send_buff[516] = send_buff[515];
Send_Data(0x61,(uint8_t *)(&send_buff[1]), 515*2);
// send_buff[516] = send_buff[0];
send_buff[514] = send_buff[513];
send_buff[515] = send_buff[513];
send_buff[516] = send_buff[513];
Send_Data(0x61,(uint8_t *)(&send_buff[2]), 515*2);
xEventGroupClearBits(community_event_group,Send_data_bit);
}
}