The code is:
fwd 1.5 @v0.3
turn 180
fwd 1.5 @v0.3
That means: go forward 1.5m at the velocity 0.3m/s, turn around 180 degrees and the same length back.
Here is the result in the simulator.
Notice that the simulator includes movement errors; i.e. the returning position is slightly offset.
No comments:
Post a Comment