Go to Post I guess this means we have to work on becoming super-flexible and always be ready for our close-ups at robotics from now on? - Beth Sweet [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-05-2015, 18:10
Jalerre's Avatar
Jalerre Jalerre is offline
Registered User
FRC #4965 (FIRE)
Team Role: Alumni
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Anderson, SC
Posts: 147
Jalerre is on a distinguished road
Re: Need help with lego NXT lejos xbox controlling

This might help. I have a little bit of experience using LeJos with an NXT with Bluetooth and Joystick control so I may be of some assistance.
__________________
Vex
2013: 415 - Fabrication, Programming, Electrical
2014: 415D - Captain, Programming Lead
FTC
2014: 7354 - Programming Lead
FRC
2013: 415 - Safety Animation, Fabrication
2014-2015: 4965 - Programming & Electrical
2016: 4965 - Captain, Programming Lead, Electrical

Last edited by Jalerre : 25-05-2015 at 18:13.
  #2   Spotlight this post!  
Unread 29-05-2015, 21:46
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 Jalerre View Post
This might help. I have a little bit of experience using LeJos with an NXT with Bluetooth and Joystick control so I may be of some assistance.
I'll take you up on that offer, i got everything to work, but i am now stuck on how to integrate the xbox controller's inputs into the code. as far as i can tell, it is only passing on the key and then the keystroke reaches the robot, it goes forward, i want it to coast up to speed but i don't know if you can called in joystick function on the robot (server) side,
ex.
int i = 0
if(control.getAxisValue(1) > 0.35){
i = i +5;
Motor.BC.setSpeed(i) }
else
i=0;



how would i add this to the code?
__________________
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


Closed Thread


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 01:48.

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