ste02499 created page: Lesson 1 authored by Lasse Brøsted Pedersen's avatar Lasse Brøsted Pedersen
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
**Activity duration:** 3 hours **Activity duration:** 3 hours
## Goal ## Goal
The goal of this exercise is to expirement with the light and make the robot follow a line using simple control algorithms. The goal of this exercise is to experiment with the light and make the robot follow a line using simple control algorithms.
## Plan ## Plan
To follow the instructions given in Lesson 1 (http://legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson1.dir/Lesson.html) To follow the instructions given in Lesson 1 (http://legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson1.dir/Lesson.html)
...@@ -37,7 +37,7 @@ From this table it is clear that the lighter the color is the higher is the outp ...@@ -37,7 +37,7 @@ From this table it is clear that the lighter the color is the higher is the outp
### Exercise 2 ### Exercise 2
In this exercise the same procedure as in exercise 1 is carried out however the red LED in the light sensor is turned off. The output of this process is sumarized in the following table. In this exercise the same procedure as in exercise 1 is carried out however the red LED in the light sensor is turned off. The output of this process is summarized in the following table.
Color | Percentage Color | Percentage
----------- | ----- ----------- | -----
...@@ -106,6 +106,8 @@ White | 762 ...@@ -106,6 +106,8 @@ White | 762
![alt text](https://gitlab.au.dk/uploads/rene2014/lego/f828f01da7/FreeMemoryMeasurements.png "Exercise 6 - Measurements") ![alt text](https://gitlab.au.dk/uploads/rene2014/lego/f828f01da7/FreeMemoryMeasurements.png "Exercise 6 - Measurements")
From these data, we can see that using strings directly in will result in allocating a new string each time that code is invoked - that is, the JVM on the NXT does not perform string interning. Thus, using string litterals will result the GC being invoked more frequently.
## Conclusion ## Conclusion
## Referencesg ## References
\ No newline at end of file \ No newline at end of file