v2.0.9
This commit is contained in:
@ -50,5 +50,5 @@ board_build.filesystem = spiffs
|
|||||||
|
|
||||||
|
|
||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters = esp32_exception_decoder
|
||||||
monitor_speed = 115200
|
monitor_speed = 921600
|
||||||
|
|
||||||
|
|||||||
@ -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++)
|
||||||
|
|||||||
@ -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"];
|
||||||
|
|||||||
Reference in New Issue
Block a user