View Single Post
  #5   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