V2.0.0.1
This commit is contained in:
4
.vscode/extensions.json
vendored
4
.vscode/extensions.json
vendored
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
|
||||||
// for the documentation about the extensions.json format
|
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
|
"Jason2866.esp-decoder",
|
||||||
|
"pioarduino.pioarduino-ide",
|
||||||
"platformio.platformio-ide"
|
"platformio.platformio-ide"
|
||||||
],
|
],
|
||||||
"unwantedRecommendations": [
|
"unwantedRecommendations": [
|
||||||
|
|||||||
9
src/IS3_esp32.code-workspace
Normal file
9
src/IS3_esp32.code-workspace
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"name": "IS3_esp32",
|
||||||
|
"path": ".."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
||||||
@ -63,15 +63,30 @@ void read_task(void *pvParameters)
|
|||||||
|
|
||||||
if(data_length > 0) commander_run(command_data, data_length);
|
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_flag) stop_shutter ++;
|
||||||
if(stop_shutter == 50)
|
if(stop_shutter == 50)
|
||||||
{
|
{
|
||||||
shutter_stop();
|
shutter_stop();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(stop_shutter >= (Global_shutter_now + 50))
|
||||||
|
{
|
||||||
stop_shutter_flag = false;
|
stop_shutter_flag = false;
|
||||||
uint8_t d = 1;
|
uint8_t d = 1;
|
||||||
Send_Data(shutter_command,&d,1);
|
Send_Data(shutter_command,&d,1);
|
||||||
stop_shutter = 0;
|
stop_shutter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
vTaskDelay(1);
|
vTaskDelay(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -244,12 +259,16 @@ void send_data_task(void *pvParameters)
|
|||||||
uint16_t send_buff[517];
|
uint16_t send_buff[517];
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
xEventGroupClearBits(community_event_group,Send_data_bit);
|
|
||||||
xEventGroupWaitBits(community_event_group,Send_data_bit,pdTRUE,pdFALSE,portMAX_DELAY);
|
xEventGroupWaitBits(community_event_group,Send_data_bit,pdTRUE,pdFALSE,portMAX_DELAY);
|
||||||
// xEventGroupWaitBits(sensor_event_group,SENSOR_READ_DONE,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,Global_shutter_now*0.9);
|
||||||
get_sensor_data(send_buff);
|
get_sensor_data(send_buff);
|
||||||
// send_buff[516] = send_buff[515];
|
// send_buff[516] = send_buff[0];
|
||||||
Send_Data(0x61,(uint8_t *)(&send_buff[1]), 515*2);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user