Quote:
|
Originally Posted by Alan Anderson
Are you sure your serial communication is slowing down your code? The IFI Loader's terminal window is slow to display; maybe that's what you're seeing.
|
I am monitoring the routines' speed through how many times a Parallax PING))) sensor is triggered. Every time it triggers, a green LED flashes. When the camera is not hooked up (therefore preventing any serial communication), the light is almost steadily on. As soon as I hook up the camera and serial communication is established, the light slows down quite noticeably.
Also, I tried putting limit switches on a moving part of our robot, but they took
much longer than 1/40 of a second (26.6ms) to respond. The response time was more on the order of 1/4 of a second!

This ate several limit switches, unfortunately.
All the code I have mentioned was placed within the main "26.6ms" loop. I am basing my code off of last year's camera code; were there improvements made for this year? I was under the impression that last year's default code used buffered serial communications; however I am at a loss to explain this behavior.
Can anyone help me on this? Maybe someone from IFI (hint hint)?
Thanks,
Eldarion
__________________
CMUCam not working? Tracks sporadically? Try this instead:
http://www.falconir.com!
PM me for more information if you are interested (it's open source!).
Want the FIRST Email blasts? See here:
http://www.chiefdelphi.com/forums/sh...ad.php?t=50809
"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine
If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.
"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous
I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL