Asked
— Edited
Can anyone explain this
- Add a script manager control
- Add a script called forward
- Add the Forward() script command
- Add a script called rightturn
- Add the Right() script command
- Add the Floor Map control
- Set it up like this: A.Number of pixels/second moving forward or reverse: 10 B.Number of degrees/second turning: 10
- Set up a custom movement control
- Add the foward script to forward command
- Add the right script to right command
- Add this script and call it Box
:LoopStart
Forward(255,5000)
Right(255, 9000)
Goto(LoopStart)
- Execute the box script. I am assuming it should draw a perfect square in the floor map control but it does not. The first turn occurs at: 56.1 degrees. Why not ninety degress as it it set to turn for nine seconds at ten degrees per second?
It's an estimated value because there is communication and other dependencies. You will calibrate the values based on your robot - it'll be impossible to calibrate your robot based on the values.
I should also add that there is a new Floor Map in development - that has some neat new features. I can look into the timing a bit further to see how we can increase the accuracy
Okay,excellent. I was figuring there was a rounding issue going on that was somehow linked to milliseconds to seconds just a guesstimate. I'm looking forward to the new floor map. It would be nice to be able to specify values for the control in ez script that would be real slick.
I took a look at the code and this release includes some communication time compensation: https://synthiam.com/Community/Questions/2875
it's a bit more accurate with that small update