mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Merge "Update version number for Release 3 Print distinctive message on robot program startup Change-Id: Ic91b81bd298ee6730503933cf0e733702e4b4405"
This commit is contained in:
@@ -27,6 +27,7 @@ void RobotBase::setInstance(RobotBase *robot) {
|
||||
RobotBase &RobotBase::getInstance() { return *m_instance; }
|
||||
|
||||
void RobotBase::robotSetup(RobotBase *robot) {
|
||||
printf("\n********** Robot program starting **********\n");
|
||||
robot->StartCompetition();
|
||||
}
|
||||
|
||||
@@ -55,7 +56,7 @@ RobotBase::RobotBase() : m_ds(DriverStation::GetInstance()) {
|
||||
file = fopen("/tmp/frc_versions/FRC_Lib_Version.ini", "w");
|
||||
|
||||
if (file != nullptr) {
|
||||
fputs("2016 C++ Beta5.0", file);
|
||||
fputs("2016 C++ Release 3", file);
|
||||
fclose(file);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ public abstract class RobotBase {
|
||||
|
||||
output = new FileOutputStream(file);
|
||||
|
||||
output.write("2016 Java Beta5.0".getBytes());
|
||||
output.write("2016 Java Release 3".getBytes());
|
||||
|
||||
} catch (IOException ex) {
|
||||
ex.printStackTrace();
|
||||
@@ -238,6 +238,7 @@ public abstract class RobotBase {
|
||||
|
||||
boolean errorOnExit = false;
|
||||
try {
|
||||
System.out.println("********** Robot program starting **********");
|
||||
robot.startCompetition();
|
||||
} catch (Throwable t) {
|
||||
DriverStation.reportError(
|
||||
|
||||
Reference in New Issue
Block a user