Skip to content

Power Logging - #317

Open
SpeedSlicer wants to merge 8 commits into
masterfrom
feature/power-logging
Open

SpeedSlicer wants to merge 8 commits into
masterfrom
feature/power-logging

Conversation

@SpeedSlicer

Copy link
Copy Markdown
Collaborator

What was added?

Logs for Wattage and Total Power Drawn for each subsystem in use (ignoring climber, we dont care about it)

@1023941311414 1023941311414 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I left a few comments on the files. Also, if it's not too much work, could you refer to energy consumption as "totalEnergy" instead of "motorDraw," and to power as "motorPower" instead of "motorWattage"? I just want to use the standard physics terms.

Comment thread src/main/java/frc/robot/subsystems/intake/IntakeIOReal.java Outdated
Comment thread src/main/java/frc/robot/subsystems/intake/IntakeIOSim.java Outdated
Comment thread src/main/java/frc/robot/subsystems/intakeRollers/IntakeRollerIOReal.java Outdated
Comment thread src/main/java/frc/robot/subsystems/intakeRollers/IntakeRollerIOSim.java Outdated
Comment thread src/main/java/frc/robot/subsystems/kicker/KickerIOReal.java Outdated
Comment thread src/main/java/frc/robot/subsystems/kicker/KickerIOSim.java Outdated
.toArray();
inputs.driveDrawJoules += inputs.driveAppliedVoltage * inputs.driveCurrentAmps * 0.02;
inputs.steerDrawJoules += inputs.steerAppliedVoltage * inputs.steerCurrentAmps * 0.02;
inputs.totalDrawJoules += inputs.driveDrawJoules + inputs.steerDrawJoules;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This variable should just have its value set, not incremented

Comment thread src/main/java/frc/robot/subsystems/module/ModuleIOReal.java Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

See comments in real IO

@SpeedSlicer

Copy link
Copy Markdown
Collaborator Author

and i responded

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.

2 participants