Répondre au commentaire

user warning: Unknown column 'i18n.language' in 'where clause' query: SELECT DISTINCT b.* FROM blocks b LEFT JOIN blocks_roles r ON b.module = r.module AND b.delta = r.delta LEFT JOIN i18n_blocks i18n ON (b.module = i18n.module AND b.delta = i18n.delta) WHERE (i18n.language ='fr' OR i18n.language ='' OR i18n.language IS NULL) AND ( b.theme = 'garland' AND b.status = 1 AND (r.rid IN (1) OR r.rid IS NULL) )ORDER BY b.region, b.weight, b.module in /var/alternc/html/o/orangeseeds/usr/drupal-6/modules/block/block.module on line 456.

Trying to get statistics with PIR/ATtiny

I tried another program with the PIR, this time I worked on moving averages to compute the mean number of detections and the mean time people spend in front of the PIR. The goal is to use it to give to the object a deeper consciousness of its environment (ability to detect moments such as rush hours or very passing places).

I started to have memory issues (only 1k on the ATtiny!!!) and I think it will put a sad break to using those chips for doing this kind of "advanced" stuff (statistics, adaptivity, floating point operations, etc).

Anyway here is the code.

Fichier attachéTaille
detectStats.c2.6 Ko

Répondre

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.