Go to Post I'm going to get kicked out of the mentor club for this one... - Not2B [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 31-01-2007, 13:38
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: autonomous mode

Quote:
I want to add a dead zone on the joystick. so like the robot wont move the split second you touch the joystick
There is already a dead zone built into the Victor speed controllers. But whether you realize that or not, the joysticks must not be giving the response you want.

You could try something simple like this, to basically ignore the values near the centre of travel:

Code:
if ((joy >= 120) && (joy <= 140))  joy = 127;
Or a more sophisticated "exponential" method:

Code:
speed = joy - 127;
newspeed = ((speed * speed) / 127) * sign(speed);
I have attached a Labview 8 application that demonstrates various joystick response curves.

Good luck,

Mike
Attached Files
File Type: vi JoystickResponseCurves.vi (28.9 KB, 42 views)
 


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
Autonomous Mode EricWilliams Programming 8 10-01-2007 10:58
Autonomous Mode Yellow Eyes Programming 2 18-02-2004 21:16
autonomous mode Stephanie Programming 2 25-01-2003 19:57
Autonomous Mode David Bryan Programming 1 21-01-2003 21:15
autonomous mode? bigwalt Technical Discussion 1 21-01-2003 01:14


All times are GMT -5. The time now is 11:27.

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