Home    Worksheets    Subroutines    Picaxe Maths   

Task:
Obstacles

For this task you must make the buggy get to the far end whilst avoiding obstacles
It needs to keep track of how far it has travelled.

Starting at the "Start" position on the Obstacle Track, make the buggy cross the finish line and when it hits the end wall it should stop and Flash its lights.
It needs to keep track of distance.

If it hits an obstacle in its path before the end wall, it should spin 90 degrees and go sideways 300mm before spinning back and continuing towards the finish.  The distance it travels sideways should not count as distance towards the finish.

If it hits a second obstacle whilst going forwards again it should treat it like the first obstacle.

If it hits a second obstacle whilst going sideways, it should spin 180 degrees and go sideways in the other direction to try to get round the other side of the first obstacle


Content Scl Version 21/4/07