Many examples online use the new keyword when using different parts of the WPILib or CTRE library, but I don't know that this is necessarily what is desired in every situation. For instance, for the Drivetrain velocity controlled driving, a new ChassisSpeeds class doesn't necessarily need to be created every control loop.
It would be good to go through and check out all of the uses of new throughout the project.
Many examples online use the new keyword when using different parts of the WPILib or CTRE library, but I don't know that this is necessarily what is desired in every situation. For instance, for the Drivetrain velocity controlled driving, a new ChassisSpeeds class doesn't necessarily need to be created every control loop.
It would be good to go through and check out all of the uses of new throughout the project.