Re: [E-puck-user] make the motor run for 1 second

2010-11-29 Thread Gilles Caprari
Hi, Doing a “for” will not result in a precise timing. I guess your delay is in the “main”. However in parallel there are a lot of interrupts that take processing power. So if you need a precise timing use the “agenda” functions. If you need an approximate timing, yes you can use a “for”, and j

Re: [E-puck-user] How to know if the code is buggy ?

2010-11-29 Thread Gilles Caprari
Hello, I never was able to corrupt the bootloader but I analyzed a corrupted one from others. I feel it is not the program that you upload that corrupt the bootloader. It looks like it is more the process to upload that has an influence, like: - reset during upload, - bad BT communication - lo

Re: [E-puck-user] Microphone sample rate

2010-11-29 Thread Gilles Caprari
Hi, The code handling the analog sampling of the microphones is in e_ad_conv.c and e_ad_conv.h it is quite tricky and close to the HW periphery definitions of the microcontroller dsPIC30F6014A. The AD is stated to be 100 Ksps (kilo sample per second). Thus in theory yes you can sample at 50K.