CTRE paid 6.0 version? #96
Unanswered
martygubow
asked this question in
Q&A
Replies: 2 comments 2 replies
-
It does not require the Phoenix Pro. Does your robot's config file return false for the getPhoenix6Licensed method? If so, do you have a link to your GitHub so I could take a closer look. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Marty,
Sorry that you ran into this issue. I created an issue for us to debug it and ensure Phoenix Pro is not required. We must have missed something.
The new PathPlanner requires a few changes. I’ll attach a version of Drivetrain.java that should work. I tried to minimize the code changes. Here is what I think is needed:
create a new getRobotRelativeSpeeds (you had a method to do this but it isn’t compiling since it is defined in the constructor and is missing a method name)
this method should return the actual ChassisSpeeds and not the requested chassis speeds, which is why the ChassisSpeeds are constructed from the current SwerveModuleState objects
change the driveRobotRelative method to control the swerve modules directly and not call the existing drive method (also needs to be moved outside of the constructor)
the existing drive method doesn’t support overriding field relative or specifying closed loop velocity control
probably easier to have a method that programs the swerve modules directly
Here is the edited [Drivetrain.java](https://gist.github.com/gcschmit/6918edb630c8d26f893b0a6b3a3a734c).
Sorry again for the trouble :(
geoff

|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does the 3061-lib require the CTRE paid 6.0 version. I get a warning that I have unlicensed devices. I tried returning getPhoenix6Licensed
Beta Was this translation helpful? Give feedback.
All reactions