diff --git a/sysid-application/src/main/native/cpp/deploy/SshSession.cpp b/sysid-application/src/main/native/cpp/deploy/SshSession.cpp index 00bb09d9..068998e5 100644 --- a/sysid-application/src/main/native/cpp/deploy/SshSession.cpp +++ b/sysid-application/src/main/native/cpp/deploy/SshSession.cpp @@ -9,7 +9,6 @@ #include #include -#include #include #include diff --git a/sysid-projects/drive/src/main/cpp/Robot.cpp b/sysid-projects/drive/src/main/cpp/Robot.cpp index 5086cd32..dc01b409 100644 --- a/sysid-projects/drive/src/main/cpp/Robot.cpp +++ b/sysid-projects/drive/src/main/cpp/Robot.cpp @@ -6,8 +6,8 @@ #include #include +#include #include -#include #include #include @@ -92,7 +92,7 @@ Robot::Robot() : frc::TimedRobot(5_ms) { std::exit(-1); } m_logger.UpdateThreadPriority(); - std::cout.flush(); + std::fflush(stdout); #ifdef INTEGRATION frc::SmartDashboard::PutBoolean("SysIdRun", false); diff --git a/sysid-projects/mechanism/src/main/cpp/Robot.cpp b/sysid-projects/mechanism/src/main/cpp/Robot.cpp index 2569fb94..4879ae96 100644 --- a/sysid-projects/mechanism/src/main/cpp/Robot.cpp +++ b/sysid-projects/mechanism/src/main/cpp/Robot.cpp @@ -5,8 +5,8 @@ #include "Robot.h" #include +#include #include -#include #include #include @@ -59,7 +59,7 @@ Robot::Robot() : frc::TimedRobot(5_ms) { fmt::print("Project failed: {}\n", e.what()); std::exit(-1); } - std::cout.flush(); + std::fflush(stdout); #ifdef INTEGRATION frc::SmartDashboard::PutBoolean("SysIdRun", false); // TODO use std::exit or EndCompetition once CTRE bug is fixed