Conversation
Hannahjjj97
requested changes
Mar 3, 2026
|
|
||
| public void shoot() { | ||
| double targetVelocity = ShooterConstants.targetVelocity; | ||
| double targetVelocity = SmartDashboard.getNumber("Shooter Target Velocity", ShooterConstants.targetVelocity); |
| SmartDashboard.putNumber("shooterVelocity", getShooterVelocity()); | ||
| SmartDashboard.putNumber("shooterMotorVoltage", shooterMotor.get() * shooterMotor.getBusVoltage()); | ||
| SmartDashboard.putData("ShooterSubsystem", this); | ||
| SmartDashboard.getNumber("Shooter Target Velocity", ShooterConstants.targetVelocity); |
Hannahjjj97
requested changes
Mar 4, 2026
|
|
||
| public Command climbUpCmd() { | ||
| Command cmd = runEnd(this::climbUp, this::stopClimb); | ||
| cmd.setName("Climb Up"); |
Contributor
There was a problem hiding this comment.
命名要跟其他 subsystem 一樣用小駝峰式命名
Hannahjjj97
requested changes
Mar 4, 2026
|
|
||
| public Command climbUpCmd() { | ||
| Command cmd = runEnd(this::climbUp, this::stopClimb); | ||
| cmd.setName("Climb Up"); |
Hannahjjj97
requested changes
Mar 4, 2026
| return encoder.getDistance(); // Adjust distance per pulse if necessary | ||
| } | ||
|
|
||
| private double manualClimbControl(double setpoint) { |
Contributor
There was a problem hiding this comment.
為什麼這個叫作 manual 可是是用 PID 控制阿
Hannahjjj97
reviewed
Mar 4, 2026
Comment on lines
+23
to
+27
| climbMotor = new SparkMax(ClimberConstants.climbMotorId, MotorType.kBrushless); | ||
|
|
||
| encoder = new Encoder(ClimberConstants.climbEncoderIdA, ClimberConstants.climbEncoderIdB); | ||
| pidController = new PIDController(ClimberConstants.climberKp, ClimberConstants.climberKi, | ||
| ClimberConstants.climberKd); // Adjust PID constants as needed |
Contributor
There was a problem hiding this comment.
要不要看一下其他 subsystem,new 一個物件的程式他們都沒有寫在建構式裡面,是直接寫在類別裡面。要不要跟他們一樣
Contributor
There was a problem hiding this comment.
然後 pidController 要不要換個名字,有點看不出來他是幹嘛的
Hannahjjj97
reviewed
Mar 4, 2026
|
|
||
| @Override | ||
| public void periodic() { | ||
| // This method will be called once per scheduler run |
BrianHu0925
requested changes
Mar 6, 2026
BrianHu0925
requested changes
Mar 6, 2026
|
老哥還有個 checkstyle 問題喔 |
Contributor
|
有衝突喔 |
Contributor
|
余悅有整理過 dashboard,climber dashboard 資料要改成同個格式喔 |
Contributor
|
然後可能先用這個分支測完之後 沒問題再 merge 喔,motor id 記得確認一下 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.