View Single Post
  #7   Spotlight this post!  
Unread 13-02-2005, 16:39
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: joystick sensitivity

Quote:
Originally Posted by sirbleedsalot
OK where does this code go into the rest of the default program. Can I put it anywhere in user routines.c or does it have a special place?
You would place this code right after you read the input data from the operator interface like so:
top of the page, or in an included file:
Code:
#define DEADBAND 10
you may place this in "Default_Routine()" if it is called, right at the beginning:
Code:
if (((((signed int)p1_x-127) && 0x7f) < DEADBAND) p1_x=127;
if (((((signed int)p1_y-127) && 0x7f) < DEADBAND) p1_y=127;
or if you do not call "Default_Routine()", then place the code right after "Getdata(&rxdata);" is called
__________________
- from B B frank