View Single Post
  #11   Spotlight this post!  
Unread 29-05-2015, 11:39
TheModMaster8's Avatar
TheModMaster8 TheModMaster8 is offline
Active Alumni
FRC #5492 (Robo Jockeys)
Team Role: Alumni
 
Join Date: Apr 2015
Rookie Year: 2009
Location: USA, Kentucky
Posts: 119
TheModMaster8 is a jewel in the roughTheModMaster8 is a jewel in the roughTheModMaster8 is a jewel in the rough
Re: Need help with lego NXT lejos xbox controlling

Quote:
Originally Posted by lopsided98 View Post
That's an OSX problem, not my code, but I'll try to help anyway.

It looks like this is a bug in BlueCove (the bluetooth library) caused by some changes in Mac OS 10.8 and newer. What are your OS and BlueCove versions?

I don't much experience with Mac OS, so Googling might help more than I can.
OSX: 10.10.2 Yosemite

and im using lejos version: leJOS_NXJ_0.9.1beta-3 2 i can't find the versoin of bluecove.




Solved it, the usb that is i needed to switch this little line of code
Code:
 public Robot() {
        // RConsole.open();
        // pilot.steer(90, false);
        // pilot.steer(140, false);
        // pilot.steer(180, false);
        // pilot.steer(0, false);
        final NXTConnection connection = Bluetooth.waitForConnection();
        communication = new CommunicationSlave(connection.openInputStream(), connection.openOutputStream(), new CommunicationHandler() {
to
Code:
  public Robot() {
        // RConsole.open();
        // pilot.steer(90, false);
        // pilot.steer(140, false);
        // pilot.steer(180, false);
        // pilot.steer(0, false);
        final NXTConnection connection = USB.waitForConnection();
        communication = new CommunicationSlave(connection.openInputStream(), connection.openOutputStream(), new CommunicationHandler() {
in the robot class, $@#$@#$@# well at the tri controller class
__________________
2009-2011: (FLL) Robot Builder / Operator
2012: (FRC Team 2783) Fabrication / HumanPlayer / FLL Ref
2013: (FRC Team 2783) Fabrication / HumanPlayer / FLL Ref
2014: (FRC Team 2783) Fabrication Student Lead / HumanPlayer / FLL Ref
2015: (FRC Team 2783) Fab Student, Teacher / HumanPlayer / Backup Driver / FLL Ref / FLL Mentor of 6 Teams
2016: (FRC Team 5492) Fabrication Student Lead / Driver / FLL Mentor of Crestwood Elementary
Past Alliance:(2783, 1208, 4154)(2783, 1002, 4265)(2783, 1182, 3868)(2783, 451, 4028)(2783, 1208!, 1288)(5492, 63, 1014) I Will Never Forget



Last edited by TheModMaster8 : 29-05-2015 at 17:14.