Go to Post No one ever said that this was easy. - Jaine Perotti [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2003, 14:58
JLambert's Avatar
JLambert JLambert is offline
Registered User
#0151 (Wild Cards)
 
Join Date: Jan 2003
Location: Nashua, NH
Posts: 49
JLambert is an unknown quantity at this point
Send a message via ICQ to JLambert Send a message via AIM to JLambert Send a message via Yahoo to JLambert
To help with the joystick sensitivity, you could add some code to create a "dead-zone".
Essentially, the robot would think the joystick is in the neutral position unless it is moved in a direction a certain amount.

Code:
'---------- Joystick Dead Zone -------------------------------------------------------------------------------
'-------------------------------------------------------------------------------------------------------------

if ((p1_y > 137) OR (p1_y < 117)) then end_p1_y_dead_zone_adj
p1_y = 127
end_p1_y_dead_zone_adj:

if ((p1_x > 137) OR (p1_x < 117)) then end_p1_x_dead_zone_adj
p1_x = 127
end_p1_x_dead_zone_adj:
Try adding that before the part that says 1 Joystick Drive. It may help a bit.
__________________
Justin Lambert
02-03: Programmer Team #151
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
How much planning goes into your robot? Jnadke General Forum 41 29-01-2006 21:29
Default Robot Code lvhsrobotics Programming 2 10-01-2003 16:55
WASH Palm scouting at the Championship Mike Soukup Scouting 2 19-04-2002 15:14
Rookie Programmer has question about the default code DanL Programming 3 26-01-2002 19:59
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


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

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