Has anyone timed how long calls to getBlocks() takes? I need to call this from a timing loop that, if disturbed too much, could cause other things to fail. So, I’m curious how much time to allocate to the getBlocks() calls.
Wayne
Has anyone timed how long calls to getBlocks() takes? I need to call this from a timing loop that, if disturbed too much, could cause other things to fail. So, I’m curious how much time to allocate to the getBlocks() calls.
Wayne
Hi Wayne,
Do you have a Pixy to try this on? You should be able to profile the getBlocks function using the Arduino “micros”:http://arduino.cc/en/reference/micros function. Also, you should keep in mind that the length of time this function takes will vary greatly depending on how many blocks are returned by getBlocks. You may limit the number of blocks sent (and therefore the time length of getBlocks) by configuring “Max blocks” in the Pixymon’s “configuration”:http://cmucam.org/projects/cmucam5/wiki/Pixymon_Configuration_Parameters.
Hope this helps.
Scott