智能车制作

标题: 线性CCD的曝光时间 [打印本页]

作者: www225588    时间: 2016-4-2 15:41
标题: 线性CCD的曝光时间
PixelAverageVoltageError = TargetPixelAverageVoltage - PixelAverageVoltage;//偏差
    if(PixelAverageVoltageError < -TargetPixelAverageVoltageAllowError)
    {
      PixelAverageVoltageError = 0- PixelAverageVoltageError ;
      PixelAverageVoltageError /= 5;
      if(PixelAverageVoltageError > 10 )
         PixelAverageVoltageError = 10 ;
       IntegrationTime -= PixelAverageVoltageError;
    }
    if(PixelAverageVoltageError > TargetPixelAverageVoltageAllowError)
    {
        PixelAverageVoltageError /= 5;
        if(PixelAverageVoltageError > 10 )
           PixelAverageVoltageError = 10 ;
        IntegrationTime += PixelAverageVoltageError;}

/*   
    uart_putchar(UART0,0XAA) ;//发送字节
    uart_putchar(UART0,PixelAverageVoltage) ;
    uart_putchar(UART0,PixelAverageVoltageError) ;
    uart_putchar(UART0,IntegrationTime) ;
*/   
    if(IntegrationTime <= 1)
        IntegrationTime = 1;
    if(IntegrationTime >= 100)
        IntegrationTime = 100;
}

这程序在计算曝光时间的原理是什么?






欢迎光临 智能车制作 (http://111.231.132.190/) Powered by Discuz! X3.2