Go to Post I find it extremely unfair to say the best robots are the ones who win events. - LeelandS [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2011, 22:04
mkhawkin mkhawkin is offline
Registered User
FRC #3651
 
Join Date: Feb 2011
Location: Travelers Rest, SC
Posts: 3
mkhawkin is an unknown quantity at this point
Lack of joystick control

We are a rookie team, and have gone through the tutorials and forums, and finally got a signal through to our motor controllers. When we try to adjust the output to a motor, however, the controller just sees neutral. We have looked at the setup menu for the driver station, and can tell when a button is pushed on the joystick, but nothing happens when we adjust on either axis. Could someone provide insight for fixing this problem?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2011, 22:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Lack of joystick control

We'd have to see your code in order to give useful help. Can you show us what you've done and tell us what you expect it to be doing? I expect that you've only changed Begin, Teleop, and Finish, though it's quite possible that you only needed to make changes in Teleop.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2011, 16:17
mkhawkin mkhawkin is offline
Registered User
FRC #3651
 
Join Date: Feb 2011
Location: Travelers Rest, SC
Posts: 3
mkhawkin is an unknown quantity at this point
Re: Lack of joystick control

A copy of our code is attached. Our understanding was that you could have joystick recognition in the default setting and then input a motor control that would work. The only area that we changed was the teleop VI.
Attached Files
File Type: doc kdbd.doc (71.0 KB, 22 views)
Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2011, 16:24
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Lack of joystick control

What was wrong with the default code that was already in Teleop.vi? Was it not working?
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
Reply With Quote
  #5   Spotlight this post!  
Unread 03-02-2011, 17:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Lack of joystick control

Lose the Watchdog and the Driver station Start Comm/Stop Comm.

The Joystick open and Motor Open need to be moved to Begin.vi where you will find other examples. The references are passed just like they are for Joystick 1.

The USB 1 you have is already being used by the default code for your drive motors. Using it again breaks your motors.

Your closes need to be moved to Finish.vi where all the other closes are placed.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2011, 13:56
mkhawkin mkhawkin is offline
Registered User
FRC #3651
 
Join Date: Feb 2011
Location: Travelers Rest, SC
Posts: 3
mkhawkin is an unknown quantity at this point
Re: Lack of joystick control

Sorry for the late reply, but thanks for all of the input. It got us going in the right direction and now we seem to be cooking.
Reply With Quote
Reply


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:14.

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