Go to Post I just think the teams that will be winners will have a higher score then us :) - Kyle [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 27-01-2014, 18:06
swaglord2000's Avatar
swaglord2000 swaglord2000 is offline
Registered User
FRC #4073
 
Join Date: Jan 2014
Location: Myrtle Beach
Posts: 13
swaglord2000 is an unknown quantity at this point
How to program a controller with labview.

We are 1st year programmers with no experience and our mentor wants us to program a controller to drive. We have formatted the cRIO and have got a response from the robot, but all the controls are messed up. It would be awesome someone could walk me through how to program the axis on a certain joystick and a button so I could do the rest! Thanks again.

We have made no alterations to our the pre-set code other than changing Jaguars to Talons and setting it to mechnum drive.
  #2   Spotlight this post!  
Unread 27-01-2014, 18:25
samfruth's Avatar
samfruth samfruth is offline
Registered User
FRC #1710 (Ravonics Revolution)
Team Role: Driver
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Olathe, Kansas
Posts: 132
samfruth will become famous soon enough
Re: How to program a controller with labview.

What kind of controller are you using? Joystick? Xbox?
  #3   Spotlight this post!  
Unread 27-01-2014, 18:34
swaglord2000's Avatar
swaglord2000 swaglord2000 is offline
Registered User
FRC #4073
 
Join Date: Jan 2014
Location: Myrtle Beach
Posts: 13
swaglord2000 is an unknown quantity at this point
Re: How to program a controller with labview.

I am using a generic usb controller which is almost identical to a ps2 controller.
  #4   Spotlight this post!  
Unread 27-01-2014, 23:53
samfruth's Avatar
samfruth samfruth is offline
Registered User
FRC #1710 (Ravonics Revolution)
Team Role: Driver
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Olathe, Kansas
Posts: 132
samfruth will become famous soon enough
Re: How to program a controller with labview.

The only alteration that you should have to make to the pre-written code in a cRio project would be to change the axis that your controller drives with. Keep it as a joystick, just change the axis in the unbundle by name node thing. If you can't figure out which axis on the controller are what in the code, just try googling it. Also make sure that you have all the right motors and such. For example, if you are using a 4-motor drive, make sure you replace the 2-motor with it in begin and add in the correct PWMs. I don't have access to any code now but feel free to pm me and I can provide photos of the code tomorrow.
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 02:34.

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