|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
MecanumDrive_Cartesian rotate
I have just a tad left in autonomous that I couldn't test before we shipped the bot off and I was wondering if a positive Rotate in MecanumDrive_Cartesian (X,Y,Rotate) function is clockwise rotation or counterclockwise rotation.
Thanks in advance |
|
#2
|
|||||
|
|||||
|
Re: MecanumDrive_Cartesian rotate
Code:
wheelSpeeds[MotorType.kFrontLeft_val] = xIn + yIn + rotation; wheelSpeeds[MotorType.kFrontRight_val] = -xIn + yIn - rotation; wheelSpeeds[MotorType.kRearLeft_val] = -xIn + yIn + rotation; wheelSpeeds[MotorType.kRearRight_val] = xIn + yIn - rotation; |
|
#3
|
||||
|
||||
|
Re: MecanumDrive_Cartesian rotate
thanks
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|