... | ... | @@ -6,7 +6,7 @@ |
|
|
|
|
|
**Group members participating:** Joakim Gregersen Quach, Simon Møller Christensen, Simon Hammerholt Madsen
|
|
|
|
|
|
**Activity duration:** ?? hours
|
|
|
**Activity duration:** 3.5 hours
|
|
|
|
|
|
## Goal
|
|
|
To build a LEGO-car and equip it with a light-sensor, to make it follow a line, as per the instructions.
|
... | ... | @@ -90,9 +90,7 @@ We found the interval between the measurements of black and white, to have a lar |
|
|
|
|
|
*In this exercise compare the drawString method using variables and using the strings directly.*
|
|
|
|
|
|
GRAF
|
|
|
|
|
|
GRAF
|
|
|
![HeapTest](http://gitlab.au.dk/uploads/madsensi/optimus_crime-legolab/f006f54b5e/HeapTest.JPG)
|
|
|
|
|
|
As the graphs show, using the strings directly requires more heap-memory. This could be because the strings are being generated each time the drawString-method is called, when the strings are used directly.
|
|
|
|
... | ... | |