3648TJSpartans / 2024Crescendo

Other
1 stars 0 forks source link

moved the Shuffleboard logic down to the ShuffleBoardSubsystem #30

Open erickrause opened 7 months ago

erickrause commented 7 months ago

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.