Demo entry 6604580

geyong

   

Submitted by anonymous on Jun 05, 2017 at 08:32
Language: C. Code size: 656 Bytes.

    ad_get_data(&ad_current[0]);
            for( i = 0; i < 3; i++ )
            {
              ad_offset[i] = *((value_to_ad_offset(get_value_offset(),&ad_current[0])) + i);   //实际AD转换值为压力值的10倍,做比较时,应该把设定的压力偏差值也放大10倍;
            }           

            if(    (abs(ad_current[0] - old_value[0]) >= ad_offset[0])
                || (abs(ad_current[1] - old_value[1]) >= ad_offset[1])
                || (abs(ad_current[2] - old_value[2]) >= ad_offset[2])
                || time_send == 1            
              )
            {
                if(time_send == 1)
                {
                    time_send = 0;
                }

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).