Skip to content

Commit

Permalink
enabled 10v saturation on volatge compensation on intake and feeder
Browse files Browse the repository at this point in the history
  • Loading branch information
AntarcticaByToto authored and mray190 committed Apr 2, 2022
1 parent b0bced4 commit b9c8681
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Competition/src/main/cpp/subsystems/Feeder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ void Feeder::init()
motor_intake.ConfigSelectedFeedbackSensor(FeedbackDevice::IntegratedSensor, 0, 10);
motor_intake.SetNeutralMode(ctre::phoenix::motorcontrol::Coast);
motor_intake.SetInverted(false);
motor_intake.EnableVoltageCompensation(true);
motor_intake.ConfigVoltageCompSaturation(10);

motor_stage.ConfigSelectedFeedbackSensor(FeedbackDevice::IntegratedSensor, 0, 10);
motor_stage.SetNeutralMode(ctre::phoenix::motorcontrol::Coast);
motor_stage.SetInverted(true);
motor_stage.EnableVoltageCompensation(true);
motor_stage.ConfigVoltageCompSaturation(10);

table->PutBoolean("Reverse Feeder?", false);
table->PutNumber("Intake Reverse Speed", FeederConstants::DEFAULT_INTAKE_SPEED_REVERSE);
Expand Down

0 comments on commit b9c8681

Please sign in to comment.