|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 18-02-2010 at 13:24. |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
Re: Set Motor Speed
Quote:
However, I don't have a clear solution for what I'm interpreting his problem as. |
|
#5
|
|||
|
|||
|
Re: Set Motor Speed
Quote:
|
|
#6
|
||||
|
||||
|
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 |
|
#7
|
||||
|
||||
|
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 |
|
#8
|
|||||
|
|||||
|
Re: Set Motor Speed
Quote:
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. |
|
#9
|
||||
|
||||
|
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 |
|
#10
|
|||||
|
|||||
|
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.
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. Last edited by Mark McLeod : 18-02-2010 at 15:25. |
|
#11
|
|||||
|
|||||
|
Re: Set Motor Speed
Quote:
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? |
|
#12
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 18-02-2010 at 14:28. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |