smp4903 created page: Group_6_Lab_Session_5 authored by Stefan Michael Pedersen's avatar Stefan Michael Pedersen
...@@ -90,8 +90,6 @@ To sum up, we can conclude that the balance bar made it easier to find the balan ...@@ -90,8 +90,6 @@ To sum up, we can conclude that the balance bar made it easier to find the balan
Instead of having to manually alter the source code, compile it, and upload it to the NXT, we can create a GUI that will allow us to do this more efficiently on-the-fly, for faster debugging and experimentation. Instead of having to manually alter the source code, compile it, and upload it to the NXT, we can create a GUI that will allow us to do this more efficiently on-the-fly, for faster debugging and experimentation.
### Setup & Approach
As a source of inspiration and initial code setup, we use the example [PCcarController.java](legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson5.dir/Lesson5Programs/PCcarController.java) [3], which creates an initial GUI, initiates the NXT Communication facilities, and the required data input-output handling (over a Bluetooth connection). The code has to be altered to fit our needs. The full source code can be found in [PCbalancerController.java]() [4] and [BTcontrolledBalancer.java]() [5]. Below is a screendump of the GUI. As a source of inspiration and initial code setup, we use the example [PCcarController.java](legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson5.dir/Lesson5Programs/PCcarController.java) [3], which creates an initial GUI, initiates the NXT Communication facilities, and the required data input-output handling (over a Bluetooth connection). The code has to be altered to fit our needs. The full source code can be found in [PCbalancerController.java]() [4] and [BTcontrolledBalancer.java]() [5]. Below is a screendump of the GUI.
![Figure 7](GUI SNIPPET LINK) ![Figure 7](GUI SNIPPET LINK)
... ...
......