Go to Post “Nothing defines humans better than their willingness to do irrational things in the pursuit of phenomenally unlikely payoffs” - Scott Adams - 114Klaatu0x72 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #12   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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:11.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi