Tuesday, April 20, 2010

P.C.o.P.P.(Pseudo Code of Programming Planning)


I am trying out a type of planning known as pseudo-code which is in a form of a dialogue between my robot and I but except I am doing all the talking. If you have any doubts maybe the following pseudo code will clerify things.



  • D.R.i.V.e., follow the route given by Google Maps by compiling your navigation blocks.

  • D.R.i.V.e., use your compass sensor to collabrate with Google Maps to make shure you are following the route.

  • D.R.i.V.e., use your accelarator sensor to check for inclines and adjust speed accordingly.

  • D.R.i.V.e., use your ultrasonic sensor to stop the car a something 2 cm in front of it.

  • D.R.i.V.e., use your touch sensors so that if bumped or pressed, stop and wait for further instructions.

  • D.R.i.V.e., diplay a green light when moving ordinarily and red when bumped or stopped.

 

No comments:

Post a Comment