|
joystick comparison within percentage
Were trying to figure out how to compare two joysticks used for a tankdrive system but have them have a percentage of difference allowed between them. With at touchy as they are there is no possible way that our driver would be holding the sticks exactly equal unless they are in the full -1,1, or 0 positions.
I have looked at the in range and coerce functions but don't fully understand them enough to figure out if they will do what were trying to do.
Right now we have our 2 joysticks and can figure out what the driver entended to do with the sticks but want to allow for a 10% or so margin of error so that the driver does not have to be super percise.
would someone either be able to provide us with a sample block of labview code or at least point us in the right direction and functions to use.
Thanks so much!
|