Tuesday, April 14, 2015

AtlasMeter Testing Continued

I fixed the lost steps issue by taking inspiration from my CNC machine. Since they don't have infinite acceleration, CNC machines use trapezoidal velocity profiles to slowly ramp in and out of movements. My camera dolly also can't accelerate infinitely, so I applied a trapezoidal profile to the velocity of every camera move. After a bit of tweaking, I was no longer losing significant number of steps. I tested from 10 to 204 frames and every time the dolly moved the right distance. However, the dolly now travels a little slower (the move step function now takes a delay parameter and therefore takes more CPU time). I need to implement variable speed movement to save time in setting up the start and end positions of the dolly.

No comments:

Post a Comment