mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[examples] Fix up merge from main (#7994)
This commit is contained in:
@@ -68,8 +68,16 @@ COMMANDS_V2_FOLDERS = [
|
||||
]
|
||||
|
||||
SNIPPETS_FOLDERS = [
|
||||
"AnalogAccelerometer",
|
||||
"AnalogEncoder",
|
||||
"AnalogInput",
|
||||
"AnalogPotentiometer",
|
||||
"DigitalInput",
|
||||
"DutyCycleEncoder",
|
||||
"Encoder",
|
||||
"EncoderDrive",
|
||||
"EncoderHoming",
|
||||
"LimitSwitch",
|
||||
]
|
||||
|
||||
TEMPLATES_FOLDERS = [
|
||||
|
||||
@@ -40,16 +40,11 @@ class Robot : public frc::TimedRobot {
|
||||
m_analog.GetAverageVoltage();
|
||||
}
|
||||
|
||||
void TeleopPeriodic() override {
|
||||
}
|
||||
void TeleopPeriodic() override {}
|
||||
|
||||
private:
|
||||
// Initializes an AnalogInput on port 0
|
||||
frc::AnalogInput m_analog{0};
|
||||
|
||||
// The count and value variables to fill
|
||||
int64_t count;
|
||||
int64_t value;
|
||||
};
|
||||
|
||||
#ifndef RUNNING_FRC_TESTS
|
||||
|
||||
@@ -67,8 +67,16 @@ COMMANDS_V2_FOLDERS = [
|
||||
]
|
||||
|
||||
SNIPPETS_FOLDERS = [
|
||||
"analogaccelerometer",
|
||||
"analogencoder",
|
||||
"analoginput",
|
||||
"analogpotentiometer",
|
||||
"digitalinput",
|
||||
"dutycycleencoder",
|
||||
"encoder",
|
||||
"encoderdrive",
|
||||
"encoderhoming",
|
||||
"limitswitch",
|
||||
]
|
||||
|
||||
TEMPLATES_FOLDERS = [
|
||||
|
||||
Reference in New Issue
Block a user