Go to Post Way to steal my thunder, Billfred! :p - Koko Ed [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 26-02-2011, 23:28
eedoga's Avatar
eedoga eedoga is offline
Registered User
FRC #2980
 
Join Date: Jan 2011
Location: Oak Harbot
Posts: 218
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
  #2   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,112
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
  #3   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 09:21.

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