Skip to content

Commit

Permalink
apply changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Dec 31, 2023
1 parent a3c9c21 commit 0cf9566
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions wombat/src/main/cpp/subsystems/Arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ void wom::subsystems::Arm::OnUpdate(units::second_t dt) {
break;
}

// if (
// (((_config.minAngle + _config.angleOffset) < 75_deg && units::math::abs(_pid.GetSetpoint() - _config.minAngle) <= 1_deg)
// || ((_config.maxAngle + _config.angleOffset) > 105_deg && units::math::abs(_pid.GetSetpoint() - _config.maxAngle) <= 1_deg)) &&
// units::math::abs(_pid.GetError()) <= 1_deg
// ) {
// voltage = 0_V;
// }

voltage *= armLimit;

// units::newton_meter_t torqueLimit = 10_kg * 1.4_m * 6_mps_sq;
Expand Down
2 changes: 1 addition & 1 deletion wombat/src/main/cpp/subsystems/Elevator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ wom::subsystems::Elevator::Elevator(ElevatorConfig config)
_pid{config.path + "/pid", config.pid},
_velocityPID{config.path + "/velocityPID", config.velocityPID},
_table(nt::NetworkTableInstance::GetDefault().GetTable(config.path)) {
// _config.leftGearbox.encoder->SetEncoderPosition(_config.initialHeight / _config.radius * 1_rad);
_config.leftGearbox.encoder->SetEncoderPosition(_config.initialHeight / _config.radius * 1_rad);
}

void wom::subsystems::Elevator::OnUpdate(units::second_t dt) {
Expand Down
1 change: 0 additions & 1 deletion wombat/src/main/cpp/utils/Encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ units::radians_per_second_t wom::utils::Encoder::GetEncoderAngularVelocity() {
}

double wom::utils::DigitalEncoder::GetEncoderRawTicks() const {
// Encoder.encoderType = 0;
return _nativeEncoder.Get();
}

Expand Down

0 comments on commit 0cf9566

Please sign in to comment.