| ... | @@ -85,7 +85,7 @@ To sum up, we can conclude that the balance bar made it easier to find the balan |
... | @@ -85,7 +85,7 @@ 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.
|
|
|
|
|
|
|
|
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](https://www.dropbox.com/s/psg8d861ghe1a9n/PCBalanceController.java?dl=0) [4] and [BTControlledBalancer.java](https://www.dropbox.com/s/tcujf01bs89bocu/BTControlledBalancer.java?dl=0) [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 [PCBalanceController.java](https://www.dropbox.com/s/psg8d861ghe1a9n/PCBalanceController.java?dl=0) [4] and [BTControlledBalancer.java](https://www.dropbox.com/s/tcujf01bs89bocu/BTControlledBalancer.java?dl=0) [5]. Below is a screendump of the GUI.
|
|
|
|
|
|
|
|

|
|

|
|
|
|
|
|
| ... | | ... | |