|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
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: |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |