Let's Make Robots!

SharpIR

Arduino QueueList library limitation

The capacitor across the leads of the sharp did little to rectify K-9's behaviour, so I'm on to the next idea, which is to average the last ten or so readings of the sensor.  The problem is that it seems that Arduino's QueueList library doesn't let you push and pop through different iterations of the main loop-the whole queue is defined each time (so in other words, I'd still have to code a queue by hand if I wanted to average the values read through each iteration of the last ten loops.)  Am I reading that wrong or is there a way around this?