Go to Post This 6 weeks of work, sweat, thinking, designing, building, talking, discussing, turning wrenches, wiring, programming, drawing on chalk boards, eating pizza, drinking mountain dew, with the students - is what the FIRST experience is really about. - meaubry [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 21-02-2011, 18:58
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
AUTONOMOUS! PLEASE HELP!!!

Hello,
We are trying to set up a last minute autonomous mode with the default labview code. We are going to use the 3 sensors from the KOP. We have it set to follow the lines, but we are stuck on making the arm move.
How do we program into the code, for the arm to raise x amount, or for x amount of time, when autonomous starts? Also, how do we program for the arm to drop a certain distance or for a certain amount of time, after the tube is put on the peg?
Thanks for the help.
Pictures or an attached modified code would be AMAZING!!!
please help rookie programmer
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2011, 19:01
kashishhora kashishhora is offline
Registered User
FRC #2170
 
Join Date: Feb 2011
Location: United States
Posts: 3
kashishhora is an unknown quantity at this point
Re: AUTONOMOUS! PLEASE HELP!!!

It depends on what kind of motor are you using, and how you're controlling it. Is it a servo directly hooked up to the GPIO, or is it a window/SIM motor hooked up to a jaguar/victor speed controller?
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2011, 19:03
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: AUTONOMOUS! PLEASE HELP!!!

Quote:
Originally Posted by kashishhora View Post
It depends on what kind of motor are you using, and how you're controlling it. Is it a servo directly hooked up to the GPIO, or is it a window/SIM motor hooked up to a jaguar/victor speed controller?
It is a fischer price motor attached to a victor
Reply With Quote
  #4   Spotlight this post!  
Unread 26-02-2011, 23:28
eedoga's Avatar
eedoga eedoga is online now
Registered User
FRC #2980
 
Join Date: Jan 2011
Location: Oak Harbot
Posts: 224
eedoga has much to be proud ofeedoga has much to be proud ofeedoga has much to be proud ofeedoga has much to be proud ofeedoga has much to be proud ofeedoga has much to be proud ofeedoga has much to be proud ofeedoga has much to be proud of
Re: AUTONOMOUS! PLEASE HELP!!!

We keep flirting with autonomous. We got into it today but couldn't figure much of anything out. Mostly we don't really understand how the line following code is supposed to work. We have the light sensors hooked up and wired properly finally, but we aren't really getting anything that looks like it will work if we put the robot on the ground.
'Here is a screen shot.



Any help would be greatly appreciated.

Edoga
Reply With Quote
  #5   Spotlight this post!  
Unread 27-02-2011, 14:32
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: AUTONOMOUS! PLEASE HELP!!!

Quote:
Originally Posted by eedoga View Post
Mostly we don't really understand how the line following code is supposed to work.
The Line Following Tutorial on the National Instruments site does a good job of explaining it.
Reply With Quote
  #6   Spotlight this post!  
Unread 28-02-2011, 18:58
CRLS97 CRLS97 is offline
Registered User
FRC #0097
 
Join Date: Jan 2011
Location: Cambridge
Posts: 28
CRLS97 is an unknown quantity at this point
Re: AUTONOMOUS! PLEASE HELP!!!

Quote:
Originally Posted by eedoga View Post
We keep flirting with autonomous. We got into it today but couldn't figure much of anything out. Mostly we don't really understand how the line following code is supposed to work. We have the light sensors hooked up and wired properly finally, but we aren't really getting anything that looks like it will work if we put the robot on the ground.
'Here is a screen shot.



Any help would be greatly appreciated.

Edoga
Hey there,

I hope you're still able to work on the code although your robot has shipped (hopefully )..

Anyways, make sure you initialize the sensors as IR1, 2, 3 respectively to their DIO port #'s on your DSC in Begin.vi.

As for raising the gripper, controlling motors etc. assuming that you want to save time and have an arm raise while driving forward you could use a case structure in a state method form (not sure what word to use for that) but basically you would use a case structure and one case would be to raise the arm, another to open your claw if necessary, then another to lower down, and finally maybe backup.. To make this happen while your autonomous default code runs, put this structure within the drive while loop and use a shift register to bump the case structure to its next state.

You might also want to watch when the autonomous drive while loop stops in case your lift takes more than the time in the loop (by default) to lift the arm up and then down, etc.
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 20:36.

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