mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
SCRIPT: FRC_ replacements
This commit is contained in:
committed by
Peter Johnson
parent
824f36f63a
commit
928ff20695
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user