Go to Post I would much rather educate the audience than dumb-down the game. - dlavery [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


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
Using Limit Switches with the Arm iwin2000 Programming 3 18-02-2008 03:52
pic: 753 Arm with banebot motor MIsanthropist Extra Discussion 2 18-02-2007 00:03
Using a switch with a victor J. Stofflett Programming 3 30-01-2006 21:00
Which do you use a spike or a victor on the Bosch motor? Leo 1529 Technical Discussion 2 20-01-2006 20:29
Window Motor With Spike/Victor supergrover Control System 9 30-01-2004 15:38


All times are GMT -5. The time now is 03:31.

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