User Tools

Site Tools


marvin:lab10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
marvin:lab10 [2008/11/28 09:15] devamarvin:lab10 [2008/11/28 09:16] (current) deva
Line 23: Line 23:
 ===Part Two=== ===Part Two===
 Suggest alternative implementation of an Arbitrator that will make sure that ''takeControl'' of all behaviours are called each time through the loop. Suggest alternative implementation of an Arbitrator that will make sure that ''takeControl'' of all behaviours are called each time through the loop.
 +
  
  
 ====Execution==== ====Execution====
-The program BumberCar.java is run in the NXT and we observe what happens when the touch sensor is kept pressed constantly. We expect the hitWall behaviour to be active making Marvin go backwards and turn over and over. This is not what happens though and the reason for this is found by inspection of the arbitrator within the LejOS system. The source code for the arbitrator is shown below. +The program BumberCar.java is run in the NXT and we observe what happens when the touch sensor is kept pressed constantly. We expect the ''HitWall'' behaviour to be active making Marvin go backwards and turn over and over. This is not what happens though and the reason for this is found by inspection of the arbitrator within the LejOS system. The source code for the arbitrator is shown below. 
  
 The LejOS Arbitrator The LejOS Arbitrator
marvin/lab10.1227860155.txt.gz · Last modified: 2008/11/28 09:15 by deva