Student tips

From Maslab 2007

Jump to: navigation, search

Students should post helpful tips for other students here.




Sending commands from the BotClient to the robot

Make a class that implements JugMessageListener and use the static Channel method addCommandListener() to make it listen to commands. Initialize as:

  U_Listener myListener = new U_Listener(); Channel.addCommandListener(myListener);    

Commands are received as a byteArray. The String constructor will help here. Happy coding! -Team1 (with help from the staff).

Personal tools