Skip to content

Conversation

@BlazingBora
Copy link
Contributor

No description provided.

Copy link
Member

@spellingcat spellingcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty close. i'm gonna have you coordinate w jason tomorrow hopefully if y'all can both make it to start writing the code that will control both the hood + rollers at the same time

HoodIOInputsAutoLogged hoodinputs = new HoodIOInputsAutoLogged();

RollerIOReal rollerIO;
RollerIOInputsAutoLogged rollerinputs = new RollerIOInputsAutoLogged();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RollerIOInputsAutoLogged rollerinputs = new RollerIOInputsAutoLogged();
RollerIOInputsAutoLogged rollerInputs = new RollerIOInputsAutoLogged();

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would perhaps rename these variables to flywheelIO and flywheelInputs (to be clear, it's still of type RollerIOReal- flywheel would just be in the name of the variables)

This was referenced Jan 18, 2026
Copy link
Member

@spellingcat spellingcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple things but i'll change them. nice job

flywheelFollower.setControl(
new Follower(
flywheelLeader.getDeviceID(),
MotorAlignmentValue.Opposed) // i didnt know what to put here
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they're aligned but i'll change that for you

Comment on lines 67 to 72
flywheelVelocity = flywheelLeader.getVelocity();
flywheelVoltage = flywheelLeader.getMotorVoltage();
flywheelStatorCurrent = flywheelLeader.getStatorCurrent();
flywheelSupplyCurrent = flywheelLeader.getSupplyCurrent();
flywheelTemp = flywheelLeader.getDeviceTemp();
flywheelPositionRotations = flywheelLeader.getPosition();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's also log the stuff for the follower - generally it shouldn't be different but if it is that's a problem and we'd like to know

flywheelFollower.optimizeBusUtilization();
}

// did not know how to do anything here,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's ok it's basically just settings for the motor

flywheelLeader.setControl(motionMagicVelocityVoltage.withVelocity(flywheelVelocity));
}

public void stop() { // thought i should add a stop command, dont think i had to though
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we do because that's how the superstructure's organized

TalonFXSimState leaderFxSimState;
DCMotorSim physicsSim =
new DCMotorSim(
LinearSystemId.createDCMotorSystem(DCMotor.getKrakenX60Foc(2), 0, 0),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these shouldn't be 0's but i'll change it

@spellingcat spellingcat requested a review from SCool62 January 18, 2026 22:46

// follower follows leader
flywheelFollower.setControl(
new Follower(flywheelLeader.getDeviceID(), MotorAlignmentValue.Aligned));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The follower isn't aligned.

flywheelFollowerSupplyCurrent = flywheelFollower.getSupplyCurrent();
flywheelFollowerTemp = flywheelFollower.getDeviceTemp();

BaseStatusSignal.setUpdateFrequencyForAll(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably works to re-access these but probably better to just pass in the variables


config.MotorOutput.NeutralMode = NeutralModeValue.Coast;
config.MotorOutput.Inverted = InvertedValue.CounterClockwise_Positive;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No gear ratio for flywheel but fixed in superstructure/sysid i think

@SCool62 SCool62 requested a review from spellingcat January 18, 2026 23:03
@spellingcat spellingcat merged commit 9310867 into main Jan 18, 2026
2 checks passed
@spellingcat spellingcat deleted the subsystem/shooter-flywheel branch January 18, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants