|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Program a dead zone?
Please help. We are using an xbox 360 usb joystick with mecanum wheels. After deploying our program (not touching the thumbstick) the wheels are spinning slowly on their own. We flick the left thumbstick and can get some wheels to stop every so often. We need help in seeing some LabView code to create a dead zone with a 0.1 so that it disregards the off center joystick input. Thank you!
|
|
#2
|
|||||
|
|||||
|
Re: Program a dead zone?
Here is one example.
A drawback to this one is that it will start motor power at the deadband value. Not necessarily an issue with drive motors that don't begin moving before .3, but more of an issue with mechanism motors that have much lower resistance to movement. It can be rescaled with a little more trouble. P.S. Here is an example of rescaling. Last edited by Mark McLeod : 01-02-2015 at 07:47. |
|
#3
|
|||||
|
|||||
|
Re: Program a dead zone?
This is the block diagram of the Deadband.vi we use. It subtracts the deadband size from the input value. If the result is less than zero it keeps it at zero. Other code can use the "In Deadband?" output to do things like maintain heading or activate a brake.
|
|
#4
|
|||
|
|||
|
Re: Program a dead zone?
Try calibrating your motor controllers.
|
|
#5
|
||||
|
||||
|
Re: Program a dead zone?
We had the same issue. In the end, we found that calibrating the actual Xbox 360 controller led to no sudden jerks or movement of our mecanums. You might also want to calibrate your motor controllers.
|
|
#6
|
||||
|
||||
|
Re: Program a dead zone?
If you disconnect your controller, and reconnect it, it should be centered. I don't know about the Xbox controller, but with the F310s this seems to fix the issue.
Going to advocate calibrating your motor controllers. If you're using the Talon SR/SRX or Victor SP, speed controllers, they have a built in "deadband" of 4%. The Victor 888 has one of 5.4% and the Jaguar of 5.5%. |
|
#7
|
|||
|
|||
|
Re: Program a dead zone?
Thank you all for your help, re-coding the programming with the dead zone coding using your suggestions above worked!
|
|
#8
|
||||
|
||||
|
Re: Program a dead zone?
Quote:
|
|
#9
|
|||||
|
|||||
|
Re: Program a dead zone?
Highlight what you want to copy.
Choose Edit -> Create VI Snippet From SelectionA Save dialog appears to save it as a png. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|