![]() |
Mecanum Single Joystick Control not working
We have put together our Mecanum drive and have the default drive program for a single joystick and have the motor controllers assigned the right ID in the web config (we are using CAN Talon SRX's) and the right ID's in the right spots but when we try and drive the robot it doesn't move except in Mecanum which is moving it forward and backwards. we inverted the front motors and now it moves forward and back correctly but when we try to turn it Mecanums in the opposite direction. And when we try to Mecanum the wheels opposes each other and nothing happens. We are using a Logitech attack 3 to control the robot.
Any help would be appreciated. |
Re: Mecanum Single Joystick Control not working
Try this:
Swap the x and y inputs. Invert your left motors in Begin. Go into HolonomicDrive.vi and change the inputs as well. It should look like this, Begin not shown. You may want to change rotation to 0 as the Attack 3's third axis is the throttle and that may cause unwanted movement. ![]() |
Re: Mecanum Single Joystick Control not working
Thank you your picture helped a lot but we are still having some issues could we see your begin.vi for the drive. Also what controller are you using?
Thank you aging. Team 2029 |
Re: Mecanum Single Joystick Control not working
We used both jags and Victor 884s for our frame (at different times). Our code had the left motors ininverted in Begin. I cannot provide said picture atm because I am away from my computer. You should try to play aound with your axises and see what happens.
|
Re: Mecanum Single Joystick Control not working
Quote:
Just make absolutely sure that the corners you have your motors on are the same as the corners you're telling the program they are on in Begin. Usually it's the two right side motors that need to be inverted. How did you change it from Open 2 Motors to Open 4 Motors? If you used the "Replace" menu option, you might find that some of the constants' labels are left over from the default code and don't match what are actually connected to. You might find it easiest to delete the Open 4 Motor Drive function and all its associated inputs from Begin.vi, then replace them. |
Re: Mecanum Single Joystick Control not working
Quote:
The reason that only one side needs to be inverted is that the motors themselves have opposite orientations. A clockwise shaft rotation (viewed from the motor side) is forward on the left and reverse on the right for no gearbox or a spur gearbox with an even number of stages. |
Re: Mecanum Single Joystick Control not working
For some reason, it seems as the inputs in the default mecanum code are inverted for some people, including myself. I'm not sure if this occurs for everyone, but just try to play with your joystick inputs and inversions. I personally had to edit the default code to get the wheels to spin the right way. You probably don't have to.
|
Re: Mecanum Single Joystick Control not working
Quote:
Quote:
|
Re: Mecanum Single Joystick Control not working
Quote:
|
Re: Mecanum Single Joystick Control not working
[quote=pastelpony;1438465]Good point. Thanks.
|
Re: Mecanum Single Joystick Control not working
Thank you all we got it working our wheels were inverted. ::rtm::
|
Re: Mecanum Single Joystick Control not working
Quote:
I don't have access to LabVIEW to inspect its code, but here's the inverse kinematics code taken straight from 2015 WPILib RobotDrive.Java: Code:
|
Re: Mecanum Single Joystick Control not working
Quote:
|
Re: Mecanum Single Joystick Control not working
I compared the LV code to the attached Java, and they are the same.
The LV code first does a gyro transformation in case you have one and want to use field coordinates. The code then uses the same expressions on the same inputs with the same output names. The code then normalizes the motor outputs. If you have an issue with the code, can you be more specific about what was wrong with it? Greg McKaskle |
| All times are GMT -5. The time now is 10:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi