Go to Post A couple of times during our matches, our HOSTBOT had a GAME PIECE right there ready to HANG, but the darn PEG dodged out of the way - MrForbes [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 29-10-2008, 20:51
Pwolter Pwolter is offline
Registered User
FRC #1274
 
Join Date: Oct 2008
Location: Berea, Ohio
Posts: 5
Pwolter is an unknown quantity at this point
Robot too sensitive. How do I fix this?

Hey all.
I have been searching for a bit and I haven't yet found a way to reduce the sensitivity on one of our older robots. Every time I attempt to drive our robot (one stick arcade) the robots sensitivity goes way off and the robot starts spinning in circles... It makes it a pain to drive.
Also is there a way to limit the max output of a motor via programming? We want one of our robots to be safe in crowds of people.
  #2   Spotlight this post!  
Unread 29-10-2008, 20:59
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: Robot too sensitive. How do I fix this?

*Warning, I have never actually programmed an FRC robot*

In order to solve the problem with the older robot you will need to look at how the code works. For a 1 stick arcade, the turning is likely determined by taking the X axis input of the joystick and adding it to one side and subtracting from the other. If you divide this input by a constant before it is applied to the motors it should make the controls less sensitive.

In terms of limiting the max output via programming there are a few ways to do this. You can leave the control scaling the way it is and simply limit the motors to a certain value by testing with IF statements if the motor is above the max forward or below the max reverse and setting it to the max value if it is too high.

You can also rescale your controls using a constant as described above such that a full forward input on the joystick corresponds to a less than full output on the motors.

Others will probably be able to give you better specifics with regard to exact syntax, but this should get you started.
__________________


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)
  #3   Spotlight this post!  
Unread 29-10-2008, 21:31
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,830
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Robot too sensitive. How do I fix this?

For a moment I thought you were going to say that you kept hurting the robot's feelings and that it couldn't take a joke.

For taking the robot out in public you can limit the maximum value that is sent to a PWM (and thus the maximum power to a motor) but that probably won't completely solve your problem of "human robot interaction", and will definitely make the robot appear slow and sluggish.

What we do is build a "robot corral", out of 10' long 2x8 bolted together at the ends. If people stay out of the corral, then the robot (usually) won't hit them. If you build it out of 12' long 2x10, then the corral can double as the walls for a low-cost VEX/FTC playing field. See here for a photo.

The spinning in circles issue could be many things. Here are a few questions to help come up with a diagnosis:

1) Can you make the robot go straight ahead and straight backwards if you are very careful with the joystick? (if not, then it may be an electrical or mechanical problem on the robot)

2) Did the robot once go straight? If so, what have you done to it since then? Did you put new code in to the robot? If so, what code did you put in... are you using EasyC pro?

3) Have you tried a couple of different joysticks? It is possible that the joystick you are using is damaged or worn. For that matter, what joystick are you using... the beige ones that come in the KoP? If so, have you been able to get an improved performance by adjusting the trim?

Finally, you may be interested in searching for the term "deadband". You'll find threads like this one http://www.chiefdelphi.com/forums/sh...light=deadband that might help solve your problems.

Jason
  #4   Spotlight this post!  
Unread 29-10-2008, 23:51
R.C.'s Avatar
R.C. R.C. is offline
2017... Oooh Kill em, Swerve!
AKA: Owner, WestCoast Products
FRC #1323 (MadTown Robotics)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 2,184
R.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond repute
Re: Robot too sensitive. How do I fix this?

Create a step function. Also, create a wide base of 127. You could either do this

if (drive_left >127 || drive_left<150)
drive left = 127;

or

create a funtion in which it takes the pwm value, splits it into 14 or 17 sections. Then it will return a number and that number could stand for a wide base of numbers:

ex: (pwm01/17) = 14. 14 would stand for the value 236. If the answer came out to be 14.2, C and C++ cuts numbers so that equals 14. This is pretty much a step function used in math.
__________________
R.C.
Owner, WestCoast Products || Twitter
MadTown Robotics Team 1323
  #5   Spotlight this post!  
Unread 29-10-2008, 21:26
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Robot too sensitive. How do I fix this?

Quote:
Originally Posted by Pwolter View Post
Hey all.
I have been searching for a bit and I haven't yet found a way to reduce the sensitivity on one of our older robots. Every time I attempt to drive our robot (one stick arcade) the robots sensitivity goes way off and the robot starts spinning in circles... It makes it a pain to drive.
Also is there a way to limit the max output of a motor via programming? We want one of our robots to be safe in crowds of people.
Here's a post to how our team has dealt with over-sensitive joysticks - the quick and dirty way:

http://www.chiefdelphi.com/forums/sh...ion#post742101

The entire thread is very useful.

Also try search terms like: "joystick sensitivity" and "joystick input mapping"

Good Luck!
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
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
This is how our robot vacations..... Vince General Forum 12 11-07-2008 12:12
Ball leak/How to fix mindman13 General Forum 18 17-02-2008 17:57
pic: This is how you know I love our robot. bigboi146 Extra Discussion 9 28-02-2007 13:47
So how would you fix this year's game? AnonymousMan General Forum 6 09-01-2005 09:36
Very BIG bug...Brandon, please fix this one ASAP! IMDWalrus CD Forum Support 1 11-02-2004 22:42


All times are GMT -5. The time now is 13: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