Go to Post Mike Wade was the Fall offseason guy. - Michael Leicht [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 15-03-2010, 17:56
hapenkop hapenkop is offline
Registered User
FRC #3382
 
Join Date: Feb 2010
Location: Montreal, Canada
Posts: 12
hapenkop is an unknown quantity at this point
Red face Using the arm with VICTOR motor

Hello everyone,
My team is using the Victor motor for our arm. We did the programmation, but it doesn't work. We added the same vi's (Begin, Set, Get, Set Refnum, Get Refnum and Close). And also, what is the signification of the red light on the Victor?

Here's three print screen about our arm with Victor with LabView:







Thank you very much!

Last edited by hapenkop : 15-03-2010 at 17:57. Reason: Wrong image
  #2   Spotlight this post!  
Unread 15-03-2010, 18:26
Vikesrock's Avatar
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.
  #3   Spotlight this post!  
Unread 15-03-2010, 18:46
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,381
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Using the arm with VICTOR motor

Quote:
Originally Posted by Vikesrock View Post
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.

You are correct. With no buttons pressed, the motor is sent both 0 and -.5. My bad.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #4   Spotlight this post!  
Unread 19-03-2010, 15:58
hapenkop hapenkop is offline
Registered User
FRC #3382
 
Join Date: Feb 2010
Location: Montreal, Canada
Posts: 12
hapenkop is an unknown quantity at this point
Re: Using the arm with VICTOR motor

Hi,

First of all thanks for the answer.

Actually what, we would like to do is basically simple.

We first use a spike to control our electric motor, but it appeared we are not allowed to use a spike.

So we putted a victor instead. So all our code has to change.

After we wrote our code, we couldn't control our motor anymore. We don't know if there is something wrong about the code, or it's the component itself that doesn't work well.

Now as far as our code above is concerned, we wanted to control our victor with two buttons.

One will make the current go through in a direction(button 1), and the other one will reverse the current (button 5). To be more specific, button 1 will be used to foward our vitor whenever we'll press it and button 5 will reverse it anytime also.

The true condition does the opposite of the false meaning button 1 sets the motor to 0.5 and button 5 sets the motor to 0.

Seriously we don't understand what's wrong with the code. We tried a couple of solutions but it didn't work. We need your HELP on this. This is our rookie year and we would like to impress our school and the community.

THANKS a lot.
  #5   Spotlight this post!  
Unread 19-03-2010, 17:53
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Using the arm with VICTOR motor

You are setting the motor twice. That will never work
Stack the case structures. If button 1 true, write motor 1. Inside button 1 false, check button 5 and write either -1 or 0.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #6   Spotlight this post!  
Unread 19-03-2010, 17:54
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,721
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Using the arm with VICTOR motor

Quick unrelated question. What physical motor are you using on the robot that was wired up to the Spike? There's a pretty short list of motors that you're not allowed to wire to a Spike, I'd like to make sure we're not making this change for no reason.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #7   Spotlight this post!  
Unread 19-03-2010, 18:28
hapenkop hapenkop is offline
Registered User
FRC #3382
 
Join Date: Feb 2010
Location: Montreal, Canada
Posts: 12
hapenkop is an unknown quantity at this point
Re: Using the arm with VICTOR motor

Quote:
Originally Posted by Kevin Sevcik View Post
Quick unrelated question. What physical motor are you using on the robot that was wired up to the Spike? There's a pretty short list of motors that you're not allowed to wire to a Spike, I'd like to make sure we're not making this change for no reason.

A Victor motor.
  #8   Spotlight this post!  
Unread 19-03-2010, 18:30
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Using the arm with VICTOR motor

Quote:
Originally Posted by hapenkop View Post
A Victor motor.
A Victor is a Motor Controller, not a motor itself. Is it a CIM? Fisher Price? Window motor? 555?
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #9   Spotlight this post!  
Unread 19-03-2010, 18:37
hapenkop hapenkop is offline
Registered User
FRC #3382
 
Join Date: Feb 2010
Location: Montreal, Canada
Posts: 12
hapenkop is an unknown quantity at this point
Re: Using the arm with VICTOR motor

Quote:
Originally Posted by apalrd View Post
A Victor is a Motor Controller, not a motor itself. Is it a CIM? Fisher Price? Window motor? 555?
Well, I don't know
  #10   Spotlight this post!  
Unread 19-03-2010, 18:39
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Using the arm with VICTOR motor

If it is a CIM or Fisher-Price motor it must be on a Victor. All others can be on Spikes. Since you said it's an arm I would guess CIM or Fisher Price, as the others are fairly wimpy motors.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #11   Spotlight this post!  
Unread 19-03-2010, 18:52
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,814
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Using the arm with VICTOR motor

Can you give a physical description?

Big, black cylinder: CIM
smaller, gray/silver cylinder: FP, Mabuchi
oblong with a diskish shape on one end: Window motor
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #12   Spotlight this post!  
Unread 19-03-2010, 18:55
hapenkop hapenkop is offline
Registered User
FRC #3382
 
Join Date: Feb 2010
Location: Montreal, Canada
Posts: 12
hapenkop is an unknown quantity at this point
Re: Using the arm with VICTOR motor

Well, I'll see tuesday the type of Victor.
  #13   Spotlight this post!  
Unread 23-03-2010, 17:02
hapenkop hapenkop is offline
Registered User
FRC #3382
 
Join Date: Feb 2010
Location: Montreal, Canada
Posts: 12
hapenkop is an unknown quantity at this point
Re: Using the arm with VICTOR motor

Sorry. but it doesn't work. I've tried to stack the case structures. I've made three print screens and will post it right now.

By the way, our Victor control is a 2.5 '' CIM Motor, 12V DC, 2.5'' diameter, and we were advise to use a Victor instead of a Spike because it's not allowed.







Thank you very much!
  #14   Spotlight this post!  
Unread 23-03-2010, 17:43
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,721
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Using the arm with VICTOR motor

Just checking on the legality of things. Moving on...

Your code there looks good and should work. I think I see the problem, and we should have all noticed it earlier, but it's a tricky one to catch. I think you're accidentally using different names for your motor reference.

In the screen where you're closing the reference and the screen where you're controlling the motor, it looks like you're calling it [Bras Robot]

In the screen where you're opening the reference to the motor, it looks like you're calling it [Bras Robot ] with an extra space at the end. That extra space DOES matter and it means you're saving the motor reference to a different name that you're accessing it with.

So, I think if you double check all your references to [Bras Robot] and make sure they're all exactly the same, things should work for you. Copy / Paste works well here. You might also want to double check this for anything else in your program you're having problems with.

In case that doesn't fix things, what does the LED on the Victor look like when your robot is on and in teleop? Is it blinking yellow or is it a solid color? Does it change colors when you press buttons 1 and 5?
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #15   Spotlight this post!  
Unread 23-03-2010, 20:39
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: Using the arm with VICTOR motor

Quote:
Originally Posted by hapenkop View Post
Well, I'll see tuesday the type of Victor.
The type of Victor had better be 884. That's the only one permitted according to <R42>. The question is what type of motor you're trying to control.

Quote:
Originally Posted by Kevin Sevcik View Post
I think I see the problem, and we should have all noticed it earlier, but it's a tricky one to catch. I think you're accidentally using different names for your motor reference.
An unrecognized reference name will be indicated in the diagnostic messages window on the Driver Station. Are there any other messages there that might tell you what else you should be looking at?
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
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 23:16.

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