|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: 2015: Year of the Mecanum
Quote:
1) calculate the 4 motor speeds using the X and Y translation commandsWouldn't it be more straightforward to compute the 4 motors speeds just once directly from the X, Y, and rotation commands? BTW, what's the significance of the CH in caps? |
|
#2
|
||||
|
||||
|
Re: 2015: Year of the Mecanum
What I was thinking was a way of dealing with imperfect results from mecanum, i.e., if simply using WPILib's mecanum drive function results in the robot turning when it's supposed to be straight strafing. When the driver is trying not to rotate (the "rotate" value would be zero), store the current gyro heading. Then have a PID controller that tries to maintain that gyro heading, by setting the "rotate" argument for the function. So the PID would find the value that counteracts any undesired rotation caused by mechanical issues.
|
|
#3
|
|||
|
|||
|
Re: 2015: Year of the Mecanum
Quote:
|
|
#4
|
||||
|
||||
|
Re: 2015: Year of the Mecanum
Quote:
Last edited by Ether : 06-01-2015 at 21:40. |
|
#5
|
||||
|
||||
|
Re: 2015: Year of the Mecanum
Nice chart--That's exactly what I was trying to describe!
|
|
#6
|
||||
|
||||
|
Re: 2015: Year of the Mecanum
|
|
#7
|
||||
|
||||
|
Re: 2015: Year of the Mecanum
Wouldn't another option be to treat the feedback loop as the "rate controller" for the yaw axis? The rotation command from the joystick would be sent to the yaw controller. If it the command is zero then it will work as described in the attachment. If the command is greater than zero, then the controller will allow for more predictable rates of rotation based on the joystick command.
I believe this is how yaw control is managed on most RC Multicopters. |
|
#8
|
||||
|
||||
|
Re: 2015: Year of the Mecanum
Quote:
1 ... http://www.chiefdelphi.com/media/papers/download/2796 ...... http://www.chiefdelphi.com/media/papers/2390 |
|
#9
|
||||
|
||||
|
Re: 2015: Year of the Mecanum
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|