Go to Post Every event that starts with "a little bit of fun" has the potential to end in disaster. Please think about all possible outcomes before you do anything stupid. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 18-09-2012, 23:56
joseluis4126 joseluis4126 is offline
Registered User
FRC #4126
 
Join Date: Sep 2012
Location: United States
Posts: 3
joseluis4126 is an unknown quantity at this point
frc programming

I am the only programmer at my school, my knowledge is very basic, i seem to be having problems with setting up the drive system on usb1 and on usb2 set the arm, we are using the joysticks from the kofp and when i change the usb 1 from the drive for the motors to usb 2 the same happens for the arm, based on what i saw do i need to make different joystick refnums, one for joystick 1 and the other for joystick 2 thanks in advance
jose villa kofa robotics frc team 4126
Reply With Quote
  #2   Spotlight this post!  
Unread 19-09-2012, 00:07
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,557
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: frc programming

Hi Joes,

Can you tell us which programming language you use? It will help us diagnose the problem.
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt
Reply With Quote
  #3   Spotlight this post!  
Unread 19-09-2012, 09:05
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,830
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: frc programming

Yes, you need a different Open and name for each joystick you use.

"refnum" is LabVIEW terminology.
For future reference there are sub-forums for each of the languages we use in FRC.
You'll get better answers if you post in the correct forum, so we don't have to guess what you're asking about.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-09-2012 at 09:12.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-10-2012, 21:10
joseluis4126 joseluis4126 is offline
Registered User
FRC #4126
 
Join Date: Sep 2012
Location: United States
Posts: 3
joseluis4126 is an unknown quantity at this point
Re: frc programming

I am using lab view,
the robot has 3 motors
2 of them are for the drive system
the 3rd is for an arm that goes up and down
the team burned out our jaguars and all we have is one working jaguar and one working victor
we have another jaguar it was burned out and they tried to service it, i think they did something wrong inside because it only allows certain movements
after i realized this, i changed that jaguar for the victor, using the default code
i can make one jaguar and one victor work the 2 motor drive system(arcade drive) i have no clue on to how to set up a second joy stick and and also set up a 3rd motor.
based on what i have seen i need to put code for motor in the begin vi, finish vi and teleop vi
i also noticed that the motor connected with the victor runs faster than the one with the jaguar i assumed it was because the 2 were different components
thanks in advance
Reply With Quote
  #5   Spotlight this post!  
Unread 20-12-2012, 12:55
Kevin Fort Kevin Fort is offline
Registered User
no team (Team NI)
 
Join Date: Dec 2012
Rookie Year: 2002
Location: Cleveland OH
Posts: 21
Kevin Fort is an unknown quantity at this point
Re: frc programming

Check out the LabVIEW tutorial on motor control here:https://decibel.ni.com/content/docs/DOC-14723. There are a lot of good getting started tutorials at ni.com/frc

To add a joystick you need to add code to initialize it and set it to a named refnum in Begin, add code to use it in Teleop (or periodic tasks) and add code to close it in Finish.
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 06:13.

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