View Single Post
  #8   Spotlight this post!  
Unread 21-03-2011, 21:37
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,064
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: old robot kicker question

I think i fixed it.

I found in the function block menu flip-flops. i used those to set the 3 button system. being an electronics guy, i knew how to wire them to do what i wanted.

I also moved the button/flip-flop section to the teleop.vi and clustered the kick boolean and the enum kick power to the periodic tasks.vi . i did it this way to make a future dashboard and/or autonomous project more modular.

i attached the teleop and periodic halves of the kick code. (well, screenshots)

edit- (not in pictures) i changed the cluster wire to a global variable. that way I can add it to my custom dashboard (I did, thanks to a tut. video), and if i want to do an autonomous demo, I can use the kicker without creating a conflict.
Attached Thumbnails
Click image for larger version

Name:	teleop kick.PNG
Views:	5
Size:	61.5 KB
ID:	10457  Click image for larger version

Name:	periodic kick.PNG
Views:	6
Size:	70.0 KB
ID:	10458  
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.

Last edited by ratdude747 : 22-03-2011 at 00:30.
Reply With Quote