Go to Post Blue Nitrile Tread is the best smelling wheel tread. #thingsyoufigureoutat2AM - Ginger Power [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-02-2009, 23:35
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Is it possible?

Is there a way I can change the Follow Goal Example so that instead of a servo it uses a Motor?

Can someone enlighten me and show me the way if it's possible?


That is what I have until now...

Last edited by elbuo : 10-02-2009 at 23:49.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2009, 08:17
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Is it possible?

Can I assume that you have a relatively standard drive train? If so, I would suggest using the Arcade Drive VI for this task. Arcade Drive is a good way of allowing you to control rotation and speed, rather than left speed and right speed.

The Arcade Drive's X refers to rotation - You can use what the X axis servo was.

The Arcade Drive's Y refers to forward/back speed- You can use what the Y axis servo was, but you'll need to massage it a bit.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2009, 09:44
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Is it possible?

I got super lost
My camera will be attached to my canon and it will spin with a motor. So instead of attaching a servo to move in the X axis I want it to move the whole thing...The motor will move the canon and therefore the camera

And I wanted to know if I can edit that code with that and know that it will work...

For the drive...I have a 4WD Arcade drive
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2009, 09:48
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Is it possible?

Yep. To elaborate on what Eric is saying, instead of opening two motors, you can probably simplify by opening a Robot Drive. Then inside the loop scale the X setting as if it were a joystick X axis (-1 to 1). Scale the Y from the servo similarly, and wire those to the Robot Drive VI to control the motors.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2009, 09:51
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Is it possible?

Is it the same thing I did in the picture above?
Sorry, it's not autonomous.
I just want the canon to be facing the target always. So when I shoot I won't have to aim. I will only need to be aware of distance.

Last edited by elbuo : 11-02-2009 at 09:59.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2009, 11:13
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Is it possible?

you can do this but not with the code you have
the problem is the servos are position controlled, and the motors are velocity(ish) controlled, so you need some way to turn the motor motion into position. i suggest you read up on PID loops for such a task, and attach an encoder to the motor so you know its position.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2009, 00:08
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Is it possible?

What about converting the value that goes out into speed?
V=D/T
So if I divide the value it would be acceptable...:S
I don't really know much about PID
I can't attach a servo to the motor because it will be moving a big gear...How can I do this :S
Reply With Quote
  #8   Spotlight this post!  
Unread 12-02-2009, 08:55
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Is it possible?

The problem is that motors are controlled by speed, while servos are controlled by angle or position. You must have an encoder or some other kind of position sensor on the motor for this to work.

If you have that, you can subtract what the software thinks is the middle point (85 I think). Assuming the motor is pointing straight at the beginning, that is the setpoint for the encoder. If it's negative, turn the motor in that direction and vice versa. Once the encoder gets close enough to the setpoint, stop turning the motor so it doesn't oscillate.
__________________
Twitter Profile
Reply With Quote
  #9   Spotlight this post!  
Unread 12-02-2009, 09:44
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Is it possible?

Okay, so how do I do this exactly?
Where should I connect the encoder? Because the globe motor won't have a transmision...
And how do I make the change in labview? :S
Reply With Quote
  #10   Spotlight this post!  
Unread 12-02-2009, 23:09
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Is it possible?

Hey guys.... I can't seem to fix this
Reply With Quote
Reply


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
Possible Problem!? Gabriel Mendez General Forum 20 06-01-2008 01:30
Possible DC Regional spatel General Forum 3 26-04-2007 19:03
Is it possible... BLAZE Pneumatics 11 04-04-2005 22:02
Is it possible... Jon K. CD Forum Support 4 26-08-2002 00:01
Possible Openings archiver 2001 0 24-06-2002 03:33


All times are GMT -5. The time now is 04:26.

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