This commit is contained in:
2026-06-23 13:58:09 +08:00
parent 6ebbd67dec
commit 0f8fc28d05
3 changed files with 20 additions and 6 deletions

View File

@ -50,5 +50,5 @@ board_build.filesystem = spiffs
monitor_filters = esp32_exception_decoder monitor_filters = esp32_exception_decoder
monitor_speed = 115200 monitor_speed = 921600

View File

@ -1405,6 +1405,23 @@ void SensorIS11::advanced_mode(u_int32_t direction,u_int32_t shutter_time,u_int3
while(aa > 0) while(aa > 0)
{ {
work_progress = (caiji_times * 100) / (collect_times * 2) ; work_progress = (caiji_times * 100) / (collect_times * 2) ;
switch (direction)
{
case 0:
shutter_up();
break;
case 1:
shutter_down();
break;
case 2:
// SetShutter(1);
shutter_off();
break;
default:
break;
}
GetOneDate(shutter_time); GetOneDate(shutter_time);
for (int i = 0; i < SensorInfo.BandNum;i++) for (int i = 0; i < SensorInfo.BandNum;i++)

View File

@ -1790,7 +1790,7 @@ void json_command(uint8_t port_type)
//command 10 //command 10
else if (doc["command"] == "set_bochangxishu") else if (doc["command"] == "set_bochangxishu")
{ {
double a0=0,a1=0,a2=0,a3=0,a4=0,b1=0,b2=0,b3=0,b4=0; double b4=0;
// a0 = doc["bochangxishu"]["a0"]; // a0 = doc["bochangxishu"]["a0"];
// a1 = doc["bochangxishu"]["a1"]; // a1 = doc["bochangxishu"]["a1"];
@ -1798,12 +1798,9 @@ void json_command(uint8_t port_type)
// a3 = doc["bochangxishu"]["a3"]; // a3 = doc["bochangxishu"]["a3"];
b1 = doc["bochangxishu"]["b0"];
b2 = doc["bochangxishu"]["b1"];
b3 = doc["bochangxishu"]["b2"];
b4 = doc["bochangxishu"]["b3"]; b4 = doc["bochangxishu"]["b3"];
if(b1!=0 && b2 !=0 && b3 != 0 && b4 != 0) if(b4 >= 0)
{ {
save = true; save = true;
// bc_b1 = doc["bochangxishu"]["b0"]; // bc_b1 = doc["bochangxishu"]["b0"];