Skip to content

Commit

Permalink
adjusted feeder and intake to work irl
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stered committed Oct 8, 2024
1 parent 5644691 commit 16a547e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/deploy/commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
691c6c1
5644691
6 changes: 3 additions & 3 deletions src/main/include/constants/FeederConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inline constexpr int FEEDER = 18;
} // namespace can_ids

namespace ports {
inline constexpr int NOTE_SENSOR_PORT = 2;
inline constexpr int NOTE_SENSOR_PORT = 9;
} // namespace ports

namespace current_limits {
Expand All @@ -30,7 +30,7 @@ inline constexpr units::ampere_t STATOR_CURRENT_LIMIT = 180_A;

namespace physical {

inline constexpr bool INVERT_MOTOR = false;
inline constexpr bool INVERT_MOTOR = true;

inline constexpr units::scalar_t FEEDER_RATIO = (60.0 / 16.0);

Expand All @@ -46,7 +46,7 @@ inline constexpr units::kilogram_square_meter_t FEEDER_MOI =
namespace gains {
inline constexpr units::volt_t NOTE_FEED_VOLTAGE = 10_V;
inline constexpr units::volt_t NOTE_EJECT_VOLTAGE = -10_V;
inline constexpr units::second_t NOTE_SENSOR_DEBOUNCE_TIME = 0.1_s;
inline constexpr units::second_t NOTE_SENSOR_DEBOUNCE_TIME = 0_s;
} // namespace gains
} // namespace feeder
} // namespace consts
6 changes: 3 additions & 3 deletions src/main/include/constants/IntakeConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ inline constexpr units::ampere_t STATOR_CURRENT_LIMIT = 180_A;

namespace physical {

inline constexpr bool INVERT_MOTOR = false;
inline constexpr bool INVERT_MOTOR = true;

inline constexpr units::scalar_t INTAKE_RATIO = (24.0 / 16.0);

Expand All @@ -41,8 +41,8 @@ inline constexpr units::kilogram_square_meter_t INTAKE_MOI =

namespace gains {
inline constexpr units::ampere_t NOTE_SPIKE_THRESHOLD = 100_A;
inline constexpr units::volt_t NOTE_INTAKE_VOLTAGE = 10_V;
inline constexpr units::volt_t NOTE_EJECT_VOLTAGE = -10_V;
inline constexpr units::volt_t NOTE_INTAKE_VOLTAGE = 5.2053_V;
inline constexpr units::volt_t NOTE_EJECT_VOLTAGE = -5.2053_V;
} // namespace gains
} // namespace intake
} // namespace consts

0 comments on commit 16a547e

Please sign in to comment.