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

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

View File

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

View File

@@ -31,7 +31,7 @@ class Robot : public wpi::TimedRobot {
wpi::math::LinearFilter<wpi::units::meters_per_second_squared_t>::MovingAverage(10);
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

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

View File

@@ -28,7 +28,7 @@ class Robot : public wpi::TimedRobot {
wpi::AnalogEncoder m_encoderFR{0, 4.0, 2.0};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

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

View File

@@ -38,7 +38,7 @@ class Robot : public wpi::TimedRobot {
wpi::AnalogPotentiometer m_pot1{&m_input, 180, 30};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

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

View File

@@ -31,7 +31,7 @@ class Robot : public wpi::TimedRobot {
wpi::DutyCycleEncoder m_encoderFR{0, 4.0, 2.0};
};
#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::Encoder m_encoder2x{0, 1, false, wpi::Encoder::EncodingType::k2X};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

@@ -47,7 +47,7 @@ class Robot : public wpi::TimedRobot {
[&](double output) { rightLeader.Set(output); }};
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}

View File

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

View File

@@ -43,7 +43,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

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

View File

@@ -47,7 +47,7 @@ class Robot : public wpi::TimedRobot {
wpi::units::meters_per_second_t m_lastSpeed = 0_mps;
};
#ifndef RUNNING_FRC_TESTS
#ifndef RUNNING_WPILIB_TESTS
int main() {
return wpi::StartRobot<Robot>();
}