View Single Post
  #2   Spotlight this post!  
Unread 15-03-2010, 18:26
Vikesrock's Avatar
Happy Birthday! Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Using the arm with VICTOR motor

Quote:
Originally Posted by billbo911 View Post
Solid RED on the Victor means it is receiving a full reverse command.

On your block diagram for the teleop, if no buttons are pressed, the motor will receive a 50% reverse command, other than that, I can not say what is happening from the screen shots.
Actually if no buttons are pressed you will have a race condition and it is impossible to determine if the output will be 0 or 50% reverse.

I recommend you place one case structure inside the other and explicitly define what you want to happen in all 4 possible conditions (Only #1 pressed, Only #5 pressed, Both pressed, neither pressed). If you need help understanding how to nest the case structure or how it works with one inside the other feel free to post here and I will explain further.

EDIT: Also without seeing the "true" Case for the case structures we can't tell what will happen when you actually do push the buttons. If you want to continue down this path and not nest them as I suggest above we'll need to see the "True" cases and we'll also need a description of what you want the code to do (IE. Power the motor at 50% reverse when button #1 is pressed and power at 50% forward when button #5 is pressed)
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)

Last edited by Vikesrock : 15-03-2010 at 18:29.