添加反射率定标
This commit is contained in:
@ -730,7 +730,7 @@ void SensorIS11::send_radiance(HardwareSerial *wb485Serial,IS11_datastruct *IS1
|
||||
{
|
||||
for (int i = 0; i < 2048;i++)
|
||||
{
|
||||
IS11_datastruct_send.data[i] = IS11_datastruct_send.data[i] / IS11_datastruct_send.shutter_time * radiance_struct_up.shutter * radiance_struct_up.gain[i] - radiance_struct_up.offset[i];
|
||||
IS11_datastruct_send.data[i] = IS11_datastruct_send.data[i] / IS11_datastruct_send.shutter_time * radiance_struct_up.shutter * radiance_struct_up.gain[i] - radiance_struct_up.offset[i];
|
||||
}
|
||||
}
|
||||
else if(IS11_datastructure == &IS11_datastruct_down)
|
||||
@ -858,12 +858,16 @@ void SensorIS11::get_fanshelv()
|
||||
|
||||
for (int i = 0; i < 2048;i++)
|
||||
{
|
||||
IS11_datastruct_fanshelv.data[i] =IS11_datastruct_up.data[i] / IS11_datastruct_down.data[i];
|
||||
IS11_datastruct_fanshelv.data[i] = IS11_datastruct_down.data[i] / IS11_datastruct_up.data[i];
|
||||
if(fanshelv_struct.shutter == 1)
|
||||
{
|
||||
IS11_datastruct_fanshelv.data[i] =IS11_datastruct_fanshelv.data[i]*fanshelv_struct.gain[i];
|
||||
}
|
||||
}
|
||||
|
||||
IS11_datastruct_fanshelv.NCa == 1;
|
||||
}
|
||||
|
||||
|
||||
void SensorIS11::send_fanshelv(HardwareSerial *wb485Serial)
|
||||
{
|
||||
if(IS11_datastruct_fanshelv.NCa == 0)
|
||||
@ -1153,13 +1157,12 @@ void SensorIS11::save_dingbiao(uint8_t * data)
|
||||
write_log(log_path,"save_dingbiao",10);
|
||||
write_log(log_path,"direction:"+String(IS11_datastructure->direction),10);
|
||||
write_log(log_path,"type:"+String(IS11_datastructure->type),10);
|
||||
if(IS11_datastructure->direction == 0)
|
||||
if(IS11_datastructure->direction == 0) //up
|
||||
{
|
||||
if (IS11_datastructure->type == 4)
|
||||
{
|
||||
radiance_struct_up.shutter = IS11_datastructure->shutter_time;
|
||||
write_log(log_path,"shutter_time:"+String(IS11_datastructure->shutter_time),10);
|
||||
|
||||
write_log(log_path,"shutter_time:"+String(IS11_datastructure->shutter_time),10);
|
||||
for (int i = 0; i < BANDNUMBER;i++)
|
||||
{
|
||||
radiance_struct_up.gain[i] = IS11_datastructure->data[i];
|
||||
@ -1171,16 +1174,24 @@ void SensorIS11::save_dingbiao(uint8_t * data)
|
||||
{
|
||||
for (int i = 0; i < BANDNUMBER;i++)
|
||||
{
|
||||
radiance_struct_up.offset[i] = IS11_datastructure->data[i];
|
||||
radiance_struct_up.offset[i] = IS11_datastructure->data[i];
|
||||
}
|
||||
write_log(log_path,"offset:"+String(IS11_datastructure->data[0]),10);
|
||||
}
|
||||
else if (IS11_datastructure->type == 6)
|
||||
{
|
||||
for (int i = 0; i < BANDNUMBER;i++)
|
||||
{
|
||||
fanshelv_struct.shutter = 1;
|
||||
fanshelv_struct.gain[i] = IS11_datastructure->data[i];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(IS11_datastructure->direction == 1)
|
||||
else if(IS11_datastructure->direction == 1) //down
|
||||
{
|
||||
if (IS11_datastructure->type == 4)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user