From 6bdd7ce506793f094f267321677ee3c14e9b4c35 Mon Sep 17 00:00:00 2001 From: Thad House Date: Mon, 31 Dec 2018 19:11:35 -0800 Subject: [PATCH] Update docs for disabled init to match all the other modes (#1523) Closes #1522 --- wpilibc/src/main/native/include/frc/IterativeRobotBase.h | 3 ++- .../main/java/edu/wpi/first/wpilibj/IterativeRobotBase.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wpilibc/src/main/native/include/frc/IterativeRobotBase.h b/wpilibc/src/main/native/include/frc/IterativeRobotBase.h index 2544155dd8..6ff5816e1f 100644 --- a/wpilibc/src/main/native/include/frc/IterativeRobotBase.h +++ b/wpilibc/src/main/native/include/frc/IterativeRobotBase.h @@ -26,7 +26,8 @@ namespace frc { * * Init() functions -- each of the following functions is called once when the * appropriate mode is entered: - * - DisabledInit() -- called only when first disabled + * - DisabledInit() -- called each and every time disabled is entered from + * another mode * - AutonomousInit() -- called each and every time autonomous is entered from * another mode * - TeleopInit() -- called each and every time teleop is entered from diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/IterativeRobotBase.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/IterativeRobotBase.java index 1bdb5d34f3..ee13ef9a4b 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/IterativeRobotBase.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/IterativeRobotBase.java @@ -26,7 +26,8 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; * *

init() functions -- each of the following functions is called once when the * appropriate mode is entered: - * - disabledInit() -- called only when first disabled + * - disabledInit() -- called each and every time disabled is entered from + * another mode * - autonomousInit() -- called each and every time autonomous is entered from * another mode * - teleopInit() -- called each and every time teleop is entered from