Hi CD community, I need a lot of help right now.
We switched to a new Swerve chassis with our team. Since our old software team was disbanded, we are in a kind of relearning phase with a new team (Since I am not a software developer, I cannot provide complete information.)
Last season, we were controlling MK4I swerve modules with Cim + Neo motors connected in reverse (Cim; Rotation, Neo; Drive) and we were running rotation only with cancoder data and although it was prepared in a short time like 1 week, it was very stable and did a good job. Now our motor and motor drivers have arrived, we started working on a swerve chassis with 8 neos.
OLD CHASSIS
don’t pay too much attention to the electrical system
NEW CHASSIS
We use in the robot;
- navX2 MXP
- Full Neo + Spark Max
- CanCoder
- SDS MK4I Swerve Module
At first, everything was going well and our team took care of the software part in 1 day. Although we had a lot of problems in our first trials yesterday, we are in a much more acceptable position in the last trials today compared to the first trials. But we still have some critical problems to solve.
As far as I can see, our biggest problem is setting the angleoffset. Normally it is a very simple process, we set it manually and transfer it to the software according to CanCoder data. But each time, although we test it many times, it does not adjust itself according to the angleoffset we give according to the cancoder data. We don’t have any problems in the drive part or rotation part (except that the motor forward and backward movements are wrong), it seems to be working very stably. But since the robot has problems in adjusting the angleoffset, even though each wheel turns in one direction at the same rate, they turn in different directions because their starting angles are different.
I think the main reason for this is a disproportion between Navx2 - CanCoder - Neo Encoder. When I try the engines manually, every data looks as it should. They are all pointing in the right direction at the right angles.
Here is the github link; GitHub - WoXy-Sensei/moonstar2024
We have no idea what to do now because we have tried all the variations. Even the smallest idea can help us a lot. Thanks in advance