|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
NavX mxp - can it be used without mecanum wheels
The question we have is can the Navx mxp be used with other drive classes like drive, arcade, and tank. We are not using mecanum wheels this year.
The code samples on the Navx mxp site are using MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), currentRotationRate ,ahrs->GetAngle()); It's not clear to me if it can be adapted to other classes. |
|
#2
|
||||
|
||||
|
Re: NavX mxp - can it be used without mecanum wheels
The NavX MXP can definitely be useful in autonomous, no matter what drive train you are using. Even drives like tank and west coast drive will not go perfectly straight, and you can use it to adjust your angle as you drive.
The NavX MXP is probably less useful in teleop, where a person can correct for any inaccuracies in the robot's travel. If you wanted to implement a button that makes the robot just go straight forward/back or turn a certain amount it could be useful. |
|
#3
|
|||
|
|||
|
Re: NavX mxp - can it be used without mecanum wheels
Thank you for your reply. What classes are you using with your Navx mxp?
|
|
#4
|
|||
|
|||
|
Re: NavX mxp - can it be used without mecanum wheels
Quote:
- Rotate to 0 degrees - Rotate to -90 degrees - Rotate to 180 degrees - Rotate to 90 degrees While we use a holonomic drive system (Mecanum), as long as your robot can spin, you can use during this during teleop when your robot is standing still. And you can get that to work while driving (to, say, ensure you are driving in a straight line) by working out the commands to your drive class that would cause it to turn a bit while driving in the current direction. I'm not aware of any drop-in code for these features on a tank-drive style robot. However, if you think it'd be helpful, I can point you to some FTC code that uses navX-Micro to control a two-wheeled tank-drive robot to "drive straight" using a PID controller - just let me know if you think that might be helpful. With some work, you might be able to port that to a FRC robot using the WPI Library. |
|
#5
|
|||
|
|||
|
Re: NavX mxp - can it be used without mecanum wheels
The question I have is can this work well with the other classes, like arcade.
|
|
#6
|
|||
|
|||
|
Re: NavX mxp - can it be used without mecanum wheels
Quote:
To rotate in place, the moveValue would be 0, the rotateValue would be the output from the PID controller. To drive straight (or rotate while moving), the moveValue would be the speed to move ahead, and the rotateValue would be the output from the PID controller. |
|
#7
|
||||
|
||||
|
Re: NavX mxp - can it be used without mecanum wheels
Quote:
TL;DR: if you want quality yaw data, this is a great sensor that has minimal drift over the course of an FRC match. It doesn't matter what drivetrain you use; we have used it (with great results) on a 6wD, an omni drive (H-drive), and a swerve drive. The only thing that we actually haven't used it on is a mechanum drive (which might be next...but definitely after 2016). |
|
#8
|
|||
|
|||
|
Re: NavX mxp - can it be used without mecanum wheels
Thank you both for replying and sharing your advise and experience. We were actually able to jump to arcade and implement it with PID on the 2016 bot and were able to run it on the 2015 bot using mecanum Cartesian on the rotate to angle. Both robots used omnimount too. I am very impressed with Navx and hope that we have an appropriate use case. The quality of their site is impressive, and the customer service is excellent.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|