SCRIPT: FRC_ replacements

This commit is contained in:
PJ Reiniger
2025-11-07 20:00:43 -05:00
committed by Peter Johnson
parent 824f36f63a
commit 928ff20695
143 changed files with 477 additions and 477 deletions

View File

@@ -17,7 +17,7 @@ void Robot::RobotPeriodic() {
m_led.SetData(m_ledBuffer);
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -162,7 +162,7 @@ class Robot : public wpi::TimedRobot {
#endif
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -36,7 +36,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -39,7 +39,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -27,7 +27,7 @@ void Robot::DisabledInit() {
m_arm.Stop();
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -54,7 +54,7 @@ class Robot : public wpi::TimedRobot {
wpi::PowerDistribution m_pdp{0};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -42,7 +42,7 @@ class Robot : public wpi::TimedRobot {
Drivetrain m_drive;
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -46,7 +46,7 @@ class Robot : public wpi::TimedRobot {
Drivetrain m_drive;
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -22,7 +22,7 @@ void Robot::RobotPeriodic() {
m_alertOutput.Set(matchTime <= 30_s && matchTime >= 25_s);
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -65,7 +65,7 @@ void Robot::TeleopPeriodic() {}
*/
void Robot::TestPeriodic() {}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -66,7 +66,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -26,7 +26,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -60,7 +60,7 @@ class Robot : public wpi::TimedRobot {
wpi::math::ExponentialProfile<wpi::units::meters, wpi::units::volts>::State m_setpoint;
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -37,7 +37,7 @@ void Robot::DisabledInit() {
m_elevator.Stop();
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -63,7 +63,7 @@ class Robot : public wpi::TimedRobot {
wpi::math::ElevatorFeedforward m_feedforward{kS, kG, kV};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -32,7 +32,7 @@ void Robot::DisabledInit() {
m_elevator.Stop();
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -56,7 +56,7 @@ class Robot : public wpi::TimedRobot {
wpi::math::TrapezoidProfile<wpi::units::meters>::State m_setpoint;
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -79,7 +79,7 @@ class Robot : public wpi::TimedRobot {
wpi::Encoder m_encoder{1, 2, false, wpi::Encoder::k4X};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -94,7 +94,7 @@ class Robot : public wpi::TimedRobot {
wpi::Joystick m_joystick{0};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -101,7 +101,7 @@ class Robot : public wpi::TimedRobot {
wpi::sim::EncoderSim m_encoderSim{m_encoder};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -59,7 +59,7 @@ class Robot : public wpi::TimedRobot {
wpi::Timer m_timer;
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -57,7 +57,7 @@ class Robot : public wpi::TimedRobot {
wpi::Joystick m_joystick{kJoystickPort};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -58,7 +58,7 @@ class Robot : public wpi::TimedRobot {
wpi::Joystick m_joystick{kJoystickPort};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -74,7 +74,7 @@ void Robot::TeleopPeriodic() {}
*/
void Robot::TestPeriodic() {}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -74,7 +74,7 @@ void Robot::TeleopPeriodic() {}
*/
void Robot::TestPeriodic() {}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -26,7 +26,7 @@ class Robot : public wpi::TimedRobot {
wpi::GenericHID m_hid{0};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -60,7 +60,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -40,7 +40,7 @@ void Robot::RobotPeriodic() {
arduino.WriteBulk(reinterpret_cast<uint8_t*>(string.data()), string.size());
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -70,7 +70,7 @@ class Robot : public wpi::TimedRobot {
#endif
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -50,7 +50,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -54,7 +54,7 @@ class Robot : public wpi::TimedRobot {
wpi::Joystick m_stick{kJoystickChannel};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -50,7 +50,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -69,7 +69,7 @@ class Robot : public wpi::TimedRobot {
"wrist", 0.5, 90_deg, 6, wpi::Color8Bit{wpi::Color::kPurple});
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -45,7 +45,7 @@ class Robot : public wpi::TimedRobot {
wpi::Encoder m_encoder{0, 1};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -29,7 +29,7 @@ void Robot::TeleopPeriodic() {
}
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -25,7 +25,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -51,7 +51,7 @@ void Robot::TestInit() {
void Robot::TestPeriodic() {}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -64,7 +64,7 @@ void Robot::TeleopPeriodic() {}
*/
void Robot::TestPeriodic() {}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -65,7 +65,7 @@ void Robot::TeleopPeriodic() {}
*/
void Robot::TestPeriodic() {}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -65,7 +65,7 @@ class Robot : public wpi::TimedRobot {
wpi::Timer m_timer;
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -87,7 +87,7 @@ void Robot::TeleopPeriodic() {
}
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -137,7 +137,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -137,7 +137,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -114,7 +114,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -114,7 +114,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -54,7 +54,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -50,7 +50,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -48,7 +48,7 @@ void Robot::TestPeriodic() {}
void Robot::TestExit() {}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -37,7 +37,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -37,7 +37,7 @@ class Robot : public wpi::TimedRobot {
}
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -25,7 +25,7 @@ void Robot::TeleopPeriodic() {
}
}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -64,7 +64,7 @@ void Robot::TeleopPeriodic() {}
*/
void Robot::TestPeriodic() {}
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}