Skip to content

Commit

Permalink
fixed sysid examples
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stered committed Apr 10, 2024
1 parent 2e7ddf9 commit 62fab66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class SysIdRoutineTest : public ::testing::Test {

frc2::sysid::SysIdRoutine m_emptySysidRoutine{
frc2::sysid::Config{std::nullopt, std::nullopt, std::nullopt, nullptr},
frc2::sysid::Mechanism{[this](units::volt_t driveVoltage) {}, nullptr,
frc2::sysid::Mechanism{[](units::volt_t driveVoltage) {}, nullptr,
&m_subsystem}};

frc2::CommandPtr m_emptyRoutineForward{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ class Drive : public frc2::SubsystemBase {
constants::drive::kRightEncoderReversed};

frc2::sysid::SysIdRoutine m_sysIdRoutine{
frc2::sysid::Config{std::nullopt, std::nullopt, std::nullopt,
std::nullopt},
frc2::sysid::Config{std::nullopt, std::nullopt, std::nullopt, nullptr},
frc2::sysid::Mechanism{
[this](units::volt_t driveVoltage) {
m_leftMotor.SetVoltage(driveVoltage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class Shooter : public frc2::SubsystemBase {
constants::shooter::kEncoderReversed};

frc2::sysid::SysIdRoutine m_sysIdRoutine{
frc2::sysid::Config{std::nullopt, std::nullopt, std::nullopt,
std::nullopt},
frc2::sysid::Config{std::nullopt, std::nullopt, std::nullopt, nullptr},
frc2::sysid::Mechanism{
[this](units::volt_t driveVoltage) {
m_shooterMotor.SetVoltage(driveVoltage);
Expand Down

0 comments on commit 62fab66

Please sign in to comment.