0

I was wondering if anyone knew how I could make my finch robot turn right by 90 degrees? The below code is what I've tried but it's incorrect as the robot doesn't turn by 90 degrees

robot.setWheelVelocities(100,-80,1000);

https://www.birdbraintechnologies.com/javadoc-finch/edu/cmu/ri/createlab/terk/robot/finch/Finch.html#setWheelVelocities(int,%20int)

https://www.birdbraintechnologies.com/finch/curriculum/lesson/java-lesson-3-turning-the-finch/

4

1 回答 1

0

您可以尝试将其中一个轮设置为 0,将另一个设置为 100。如下所示:

robot.setWheelVelocities(10,-10,3000);

如果这不起作用,则测量它转动的角度,除以 90,然后将时间乘以答案。

于 2020-01-18T02:37:59.183 回答