and used reflection to get the field data from the child class.
Fun fact. This still won't work. I'd leave you to guess what the issue is but it's late and I'll tell you. SwerveSubsystem doesn't actually have any CANSparkMax fields.
And if you try to make SwerveModule just extend ShuffleBoardSubsystem it will kind of work. However, you are going to have 4 Swerve instances all writing to the same 2 fields.
You will need to either make different tabs for each module. Or you will have to add something to the field name to distinguish it. I'd think something like getDeviceId() might be useful enough.
and used reflection to get the field data from the child class.
Fun fact. This still won't work. I'd leave you to guess what the issue is but it's late and I'll tell you.
SwerveSubsystem
doesn't actually have anyCANSparkMax
fields.And if you try to make SwerveModule just extend ShuffleBoardSubsystem it will kind of work. However, you are going to have 4 Swerve instances all writing to the same 2 fields. You will need to either make different tabs for each module. Or you will have to add something to the field name to distinguish it. I'd think something like
getDeviceId()
might be useful enough.