Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayKhulbe committed Jan 15, 2025
1 parent 44a29f9 commit e4fbde3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ To undo the going back:
```
src/frc846/cpp/frc846/control/calculators/CurrentTorqueCalculator.cc:49:30: warning: Variable 'duty_cycle_original' is assigned a value that is never used. [unreadVariable]
src/frc846/cpp/frc846/robot/swerve/drivetrain.cc:160:64: warning: Variable 'accel_target' is assigned a value that is never used. [unreadVariable]
src/y2025/cpp/subsystems/hardware/coral_wrist.cc:38:3: warning: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak]
src/frc846/cpp/frc846/math/collection.cc:25:0: warning: The function 'VerticalDeadband' is never used. [unusedFunction]
src/frc846/cpp/frc846/math/collection.cc:39:0: warning: The function 'CoterminalDifference' is never used. [unusedFunction]
src/frc846/cpp/frc846/math/collection.cc:52:0: warning: The function 'CoterminalSum' is never used. [unusedFunction]
Expand Down
12 changes: 6 additions & 6 deletions src/y2025/cpp/subsystems/hardware/coral_wrist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ CoralWristSubsystem::CoralWristSubsystem()
: frc846::robot::GenericSubsystem<CoralWristReadings, CoralWristTarget>(
"coral_wrist"),
motor_configs(GET_MOTOR_CONFIG("coral_wrist/coral_wrist_one_",
ports::coral_wrist_::kCoralWristOne_CANID, frc846::wpilib::unit_ohm{0.0},
frc846::wpilib::unit_kg_m_sq{0.0})),
ports::coral_wrist_::kCoralWristOne_CANID,
frc846::wpilib::unit_ohm{0.0}, frc846::wpilib::unit_kg_m_sq{0.0})),
coral_wrist_(frc846::control::base::MotorMonkeyType::SPARK_MAX_NEO550,
motor_configs) {
RegisterPreference("coral_wrist/coral_wrist_tolerance_", 0.25_in);
Expand All @@ -29,12 +29,12 @@ CoralWristTarget CoralWristSubsystem::ZeroTarget() const {
}

bool CoralWristSubsystem::VerifyHardware() {
bool ok = true;
bool ok = true;

FRC846_VERIFY(
coral_wrist_.VerifyConnected(), ok, "Coral Wrist not connected");
FRC846_VERIFY(
coral_wrist_.VerifyConnected(), ok, "Coral Wrist not connected");

return ok;
return ok;
return true;
}

Expand Down

0 comments on commit e4fbde3

Please sign in to comment.