|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Drive Backwards Causes A Rotation Movement
Quote:
|
|
#2
|
||||
|
||||
|
Re: Drive Backwards Causes A Rotation Movement
Forward=
Y = 1.000 Z = 0.008 Backwards = Y = -1.000 Z = -0.0062 It's a small difference but it makes the robot rotate. |
|
#3
|
||||
|
||||
|
Re: Drive Backwards Causes A Rotation Movement
Quote:
When we pull the joystick backwards the Z axis has an input greater than the Y axis input. Last edited by Ether : 13-02-2015 at 17:02. |
|
#4
|
||||
|
||||
|
Re: Drive Backwards Causes A Rotation Movement
Yes the Y axis is greater than the Z axis but the robot still rotates when driving backwards.
|
|
#5
|
||||
|
||||
|
Re: Drive Backwards Causes A Rotation Movement
Quote:
repeat for negative Y commands. If all the Z values are within +/-0.0099, try adding deadband to your code: if (fabs(Z)<.01) Z=0; |
|
#6
|
||||
|
||||
|
Re: Drive Backwards Causes A Rotation Movement
Where would you put that in the code?
|
|
#7
|
||||
|
||||
|
Re: Drive Backwards Causes A Rotation Movement
Right after you read the joystick Z axis (i.e. before you use it).
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|