View Single Post
  #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