mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Move robot base classes from opmode to framework (#8344)
Having these in opmode will be confusing to users when opmodes are added.
This commit is contained in:
@@ -385,7 +385,7 @@ public class AnnotationProcessor extends AbstractProcessor {
|
||||
|
||||
// Used to check for a main robot class
|
||||
var robotBaseClass =
|
||||
processingEnv.getElementUtils().getTypeElement("org.wpilib.opmode.TimedRobot").asType();
|
||||
processingEnv.getElementUtils().getTypeElement("org.wpilib.framework.TimedRobot").asType();
|
||||
|
||||
boolean validFields = validateFields(annotatedElements);
|
||||
boolean validMethods = validateMethods(annotatedElements);
|
||||
|
||||
@@ -19,8 +19,8 @@ import org.wpilib.epilogue.EpilogueConfiguration;
|
||||
* Generates the {@code Epilogue} file used as the main entry point to logging with Epilogue in a
|
||||
* robot program. {@code Epilogue} has instances of every generated logger class, a {@link
|
||||
* EpilogueConfiguration config} object, and (if the main robot class inherits from {@link
|
||||
* org.wpilib.opmode.TimedRobot TimedRobot}) a {@code bind()} method to automatically add a periodic
|
||||
* logging call to the robot.
|
||||
* org.wpilib.framework.TimedRobot TimedRobot}) a {@code bind()} method to automatically add a
|
||||
* periodic logging call to the robot.
|
||||
*/
|
||||
public class EpilogueGenerator {
|
||||
private final ProcessingEnvironment m_processingEnv;
|
||||
|
||||
Reference in New Issue
Block a user