Go to Post "You know, a robotics regional is the only place where you can walk in and see two people in chicken suits and not be confused." - Herodotus [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 18-02-2010, 11:49
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Set Motor Speed

Hello I am Kyle Lenox of Team #2632

I want to know if there is a way to control the motor speed in Teleoperated mode.

The thing is that when I pull on the joystick, the moter goes from 0% to 100% instantly. I want to know if there is a way to make the motors slowing gain rpms in Teloperated mode. Ive gon in there and have tried it myself, but the robot was just constanly slowly moving, almost as if I made an infinate loop by accident. I really need to know if there is a way to do that.

The other I idea is if I can Make the joystick less sensitive. I barely tilt it and it is going 100% speed. Is there a conponent that can adjust the jostick. I want it to work like a car petal. When you slitly tilit it it goes slowly, but when the petal is hittting the floorboard, your going rally fast. Will anyting work like that??

Any help is appreciated, Thx

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2010, 12:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Set Motor Speed

You can cube the output of the joystick, or use some function like that. (Cubing is important by the way, because the odd number of multiplies preserves the negative sign. If you only squared then -1 would become 1)
This gives you a slower speed increase when the joystick is close to neutral, and a greater increase when it's almost at the end of it's range.
Attached Thumbnails
Click image for larger version

Name:	Xcubed.jpg
Views:	78
Size:	2.8 KB
ID:	8710  Click image for larger version

Name:	SpeedCubed.jpg
Views:	56
Size:	10.2 KB
ID:	8711  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-02-2010 at 13:24.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2010, 13:01
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Re: Set Motor Speed

Thankyou so much. I will try it out at my robotics meeting form 4:30-6:30 to see if it works, thanks!!

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2010, 13:13
EricWilliams EricWilliams is offline
Registered User
FRC #2039 (Rockford Robotics)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2001
Location: Rockford, IL
Posts: 103
EricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of light
Re: Set Motor Speed

Quote:
Originally Posted by Mark McLeod View Post
You can cube the output of the joystick, or use some function like that.
This gives you a slower speed increase when the joystick is close to neutral, and a greater increase when it's almost at the end of it's range.
Mark, I believe what he was describing was that he wanted to slow the spin-up time of the motor even when the joystick gets mashed full on/off. I may be wrong on this, but I think the joystick smoothing algorithm will only affect the instantaneous mapping of input to output, and not add the "inertia" he's looking for.

However, I don't have a clear solution for what I'm interpreting his problem as.
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2010, 13:19
EricWilliams EricWilliams is offline
Registered User
FRC #2039 (Rockford Robotics)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2001
Location: Rockford, IL
Posts: 103
EricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of light
Re: Set Motor Speed

Quote:
Originally Posted by EricWilliams View Post
Mark, I believe what he was describing was that he wanted to slow the spin-up time of the motor even when the joystick gets mashed full on/off. I may be wrong on this, but I think the joystick smoothing algorithm will only affect the instantaneous mapping of input to output, and not add the "inertia" he's looking for.

However, I don't have a clear solution for what I'm interpreting his problem as.
I probably should have spent more time reading his second paragraph. Sorry about that.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2010, 14:19
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Re: Set Motor Speed

Hey I started trying to insert it into the teleoperated mode, but I don't know where it should go.

I took everything left of the y-axis value (unbundle by name) from the bit image above, and took the (x-squared, multiply, and the Set Motor speed) and brahed it off of the y-axis value in the joystick for loop. did I do it right?

If someone can tell me how to take my block diagram an make it into a image, I can sow you what I did. I just don't know how to do it.

Thx
Kyle Lenox
Attached Files
File Type: vi Teleop.vi (23.4 KB, 18 views)
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2010, 14:22
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Re: Set Motor Speed

Dont click on the Teleop vi. that i attached above, it wont load properly.

Now how do I make an image appear like the one somebody made that hs those two images above this exact post???/

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #8   Spotlight this post!  
Unread 18-02-2010, 14:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Set Motor Speed

I use "Print Screen", then open a photo tool like Paint, do a paste, then crop it and save as a jpeg (NOT bmp).
I use Irfanview.


Teleop looks fine except you haven't specified which motor you're going to be moving. Is this for the Mast, Kick, or Shell motors?
If it's one of those, then you want that new code where those motors are currently being set.

I can open Teleop fine, and it's easier for me to help if I get to see everything in there.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-02-2010 at 14:28.
Reply With Quote
  #9   Spotlight this post!  
Unread 18-02-2010, 15:12
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
Re: Set Motor Speed

I got to the print preview, but it wont let me copy an paste.
Am I doing it right?

Now I am using two motors that move the robot. We are using Skid Steering as our form of driving. What I can currently do is slightly move the joystick forward and the robot is at full speed. I dont want that. What I want to do is see if there is a way to go into Teleoperated Mode, and do something in there where the controler is more sensitive.

Lame man terms: take controler, slightly tilt = slow speed
take controler, aggresive tilt = fast speed

Is there a way to do that?

**I did go into the Begin and found that on the "Open 2 Motor" Icon(then the drop down box says jaguar) there is a orange thing that sticks out and when I hovered the mouse over it, it said sensitivity. Is this what I am looking for???

Thx
Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote
  #10   Spotlight this post!  
Unread 18-02-2010, 15:21
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Set Motor Speed

The keyboard key says "Print Screen" or an abreviated form of that. It's usually in the upper right of a PC keyboard.
On the Classmate it's one of the Function keys on the top row.
  • Hit the "Print Screen" key
  • Go to Windows Start -> All Programs -> Accessories -> Paint
  • Hit Cntrl-V or use File -> Paste
  • Crop & save
When you make a CD post you'll see a button that says "Manage Attachments".
Click on that and you can browse to the file you've saved, then click "Upload".

For your Teleop you just need to remove the Motor Set and put the new output directly into Arcade Drive.
You might also want to modify axis 1 (x) the same way to slow down the turn, but you'll have to try it.
Attached Thumbnails
Click image for larger version

Name:	Cubed.jpg
Views:	51
Size:	21.1 KB
ID:	8713  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-02-2010 at 15:25.
Reply With Quote
  #11   Spotlight this post!  
Unread 18-02-2010, 21:30
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: Set Motor Speed

Quote:
Originally Posted by K Lenox View Post
Now I am using two motors that move the robot. We are using Skid Steering as our form of driving. What I can currently do is slightly move the joystick forward and the robot is at full speed. I dont want that. What I want to do is see if there is a way to go into Teleoperated Mode, and do something in there where the controler is more sensitive.
If a tiny bit of motor power drives the robot full speed, it sounds like you might have more of a drivetrain issue than a controller one. What motors are you using, and what is between them and the wheels?

Alternatively, if a tiny bit of joystick motion commands full power, it sounds like you might have an odd-acting controller. What kind of joystick are you using? Can you run your code (just click the "run" arrow in the Robot Main vi) and probe the values coming out of your joystick, making sure they change smoothly and continuously from -1 to 0 to 1 as you move it?
Reply With Quote
  #12   Spotlight this post!  
Unread 19-02-2010, 12:57
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Set Motor Speed

Quote:
Originally Posted by K Lenox View Post
Now how do I make an image appear like the one somebody made that hs those two images above this exact post???/
Windows Vista and 7 have a built-in tool called "Snipping Tool" that does the job very easily.

For XP, it's available as part of a "Windows Experience Pack" which was intended for tablet PCs, but will work on many XP installations. It's free from Microsoft

Or there are a number of alternative solutions available.
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

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
Editing 'Set Speed' on the dashboard K Lenox NI LabVIEW 3 13-02-2010 22:52
How to set the deadband in motor vi RickErmer NI LabVIEW 1 16-02-2009 20:07
Setting speed values for a set more block (was: Hi) team877 NI LabVIEW 2 15-02-2009 18:32
Motor speed sensing with the Jaguar motor controller? mminutto FRC Control System 5 13-01-2009 18:13
How do you set a speed limit on the servo Fares Programming 6 01-01-2003 15:04


All times are GMT -5. The time now is 22:02.

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