Open dfarrell07 opened 11 years ago
comm is only a message passer, I'm not sure if comm is doing any manipulation other than forcing angles to be int. I am currently not forcing distances to be int, that is something nav is making sure, right? (e.g. when calling botMove, botSet etc.) With floats passed in for distances, motor-control might get screwed up. Let me know if I should add int(..) casts for everything in comm.
I wasn't casting to int, but I am now for distance, speed and angle. I'll push these changes up ASAP.
In short, comm only works in integer values of mm and nav rounds to hundredths of inches, which ends up causing enough precision loss to be problematic. I either need to increase the acceptable error in nav or @jschornick and @napratin need to lose less data when rounding.
Here's a log result that shows what's going on.