mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib] Remove IterativeRobotBase mode init prints (#3500)
They don't provide much utility for the end user. A print at the call to HAL_ObserveUserProgramStarting() was added in their place so it's still clear when constructors have finished running.
This commit is contained in:
@@ -22,29 +22,17 @@ IterativeRobotBase::IterativeRobotBase(units::second_t period)
|
||||
: m_period(period),
|
||||
m_watchdog(period, [this] { PrintLoopOverrunMessage(); }) {}
|
||||
|
||||
void IterativeRobotBase::RobotInit() {
|
||||
fmt::print("Default {}() method... Override me!\n", __FUNCTION__);
|
||||
}
|
||||
void IterativeRobotBase::RobotInit() {}
|
||||
|
||||
void IterativeRobotBase::SimulationInit() {
|
||||
fmt::print("Default {}() method... Override me!\n", __FUNCTION__);
|
||||
}
|
||||
void IterativeRobotBase::SimulationInit() {}
|
||||
|
||||
void IterativeRobotBase::DisabledInit() {
|
||||
fmt::print("Default {}() method... Override me!\n", __FUNCTION__);
|
||||
}
|
||||
void IterativeRobotBase::DisabledInit() {}
|
||||
|
||||
void IterativeRobotBase::AutonomousInit() {
|
||||
fmt::print("Default {}() method... Override me!\n", __FUNCTION__);
|
||||
}
|
||||
void IterativeRobotBase::AutonomousInit() {}
|
||||
|
||||
void IterativeRobotBase::TeleopInit() {
|
||||
fmt::print("Default {}() method... Override me!\n", __FUNCTION__);
|
||||
}
|
||||
void IterativeRobotBase::TeleopInit() {}
|
||||
|
||||
void IterativeRobotBase::TestInit() {
|
||||
fmt::print("Default {}() method... Override me!\n", __FUNCTION__);
|
||||
}
|
||||
void IterativeRobotBase::TestInit() {}
|
||||
|
||||
void IterativeRobotBase::RobotPeriodic() {
|
||||
static bool firstRun = true;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <utility>
|
||||
|
||||
#include <hal/DriverStation.h>
|
||||
@@ -25,6 +26,7 @@ void TimedRobot::StartCompetition() {
|
||||
}
|
||||
|
||||
// Tell the DS that the robot is ready to be enabled
|
||||
std::puts("\n********** Robot program startup complete **********");
|
||||
HAL_ObserveUserProgramStarting();
|
||||
|
||||
// Loop forever, calling the appropriate mode-dependent function
|
||||
|
||||
Reference in New Issue
Block a user