marvin:lab10
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
marvin:lab10 [2008/11/28 09:15] – deva | marvin:lab10 [2008/11/28 09:15] – deva | ||
---|---|---|---|
Line 5: | Line 5: | ||
====Project Goal==== | ====Project Goal==== | ||
- | In this lab session we will investigate how a behaviour-based architecture(([[http:// | + | In this lab session we will investigate how a behaviour-based architecture(([[http:// |
\\ | \\ | ||
{{marvin: | {{marvin: | ||
Line 26: | Line 26: | ||
====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 |
<code java> | <code java> | ||
public class Arbitrator { | public class Arbitrator { |
marvin/lab10.txt · Last modified: 2008/11/28 09:16 by deva