Go to Post All those crazy teenagers walking around Atlanta trying to "Save the world" looking like gang members with their attire. - BrendanB [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 14-02-2009, 11:27
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Trigger buttons

We are trying to take what we learned from Ben Zimmers video to create programming for the triggers of the joysticks that came in the KOPs to make one move a chain forward and one make it move a chain in reverse for ball manipulation (not driving the robot).

We are also trying to make one button on each joystick move our dumper forward and the identical button on the other joystick move our dumper backwards, but we cannot seem to get from what Ben showed/taught us to this. Anyone have a bit of time to help us?



Thanks.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
  #2   Spotlight this post!  
Unread 16-02-2009, 10:03
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Trigger buttons

Is anyone using a system like this?
We are really struggling.

Thanks.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
  #3   Spotlight this post!  
Unread 16-02-2009, 10:28
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: Trigger buttons

Do you know how to read a joystick button? Make a simple bit of code to do that for each button you want.

Do you know how to set motor speed? Use an if statement to use the value of the joystick buttons to decide what speed to run the motor at. If you're having problems with the code, show us what you're doing and we can help you find what should be changed.
  #4   Spotlight this post!  
Unread 16-02-2009, 10:46
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Trigger buttons

Quote:
Originally Posted by Alan Anderson View Post
Do you know how to read a joystick button? Make a simple bit of code to do that for each button you want.

Do you know how to set motor speed? Use an if statement to use the value of the joystick buttons to decide what speed to run the motor at. If you're having problems with the code, show us what you're doing and we can help you find what should be changed.

We do not know how to read a button. I have seen something called Get.
We just got our basic driving code to stay on the cRio at startup.
We use both joysticks that came in the KOPS. The basic driving code works. We can go forward, back and turn nicely. I will see if I can find how to read a button. I have done lessons #5 - #10 of Ben Zimmers videos and went to the classes this Fall in NOVI, MI for Labview.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
  #5   Spotlight this post!  
Unread 16-02-2009, 11:12
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: Trigger buttons

Quote:
Originally Posted by chinckley View Post
We do not know how to read a button.
Use a Joystick Get VI. Wire the appropriate joystick's DeviceRef bundle to it. One of the Get's outputs is a bundle called Buttons. Wire that output to an Unbundle By Name VI. Click on the "Button 1" text and you'll get a menu of possible buttons to read. The output of the Unbundle By Name will be a boolean representing the state of the button.

Now you can use that boolean to choose what value to send to the motor. Do you know how to do that?
  #6   Spotlight this post!  
Unread 16-02-2009, 14:33
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Trigger buttons

Quote:
Originally Posted by Alan Anderson View Post
Use a Joystick Get VI. Wire the appropriate joystick's DeviceRef bundle to it. One of the Get's outputs is a bundle called Buttons. Wire that output to an Unbundle By Name VI. Click on the "Button 1" text and you'll get a menu of possible buttons to read. The output of the Unbundle By Name will be a boolean representing the state of the button.

Now you can use that boolean to choose what value to send to the motor. Do you know how to do that?
No. I found out that the dumper is using the Keyang motor and the chain is using the globe motor and the drive motors are the CIMS.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
  #7   Spotlight this post!  
Unread 16-02-2009, 10:32
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Trigger buttons

Have you looked at this?
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joystick Trigger Programming dnrobotics11 C/C++ 7 09-02-2009 19:27
Programming the joystick trigger... pudgeball C/C++ 4 10-01-2009 10:25
making a trigger a toggle team877 Programming 3 02-02-2007 13:26
Buttons, Buttons and more Buttons (2006) Freddy Schurr Team Organization 11 14-12-2005 21:36
Ball Chute Trigger pludodog Technical Discussion 1 12-01-2004 10:26


All times are GMT -5. The time now is 01:12.

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