mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Replace std::cout and std::cerr with fmt::print() (#3519)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "Robot.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <frc/commands/Scheduler.h>
|
||||
#include <frc/livewindow/LiveWindow.h>
|
||||
@@ -53,7 +53,7 @@ void Robot::TeleopInit() {
|
||||
if (m_autonomousCommand != nullptr) {
|
||||
m_autonomousCommand->Cancel();
|
||||
}
|
||||
std::cout << "Starting Teleop" << std::endl;
|
||||
fmt::print("Starting Teleop\n");
|
||||
}
|
||||
|
||||
void Robot::TeleopPeriodic() {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "Robot.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <frc/smartdashboard/SmartDashboard.h>
|
||||
|
||||
@@ -39,7 +39,7 @@ void Robot::AutonomousInit() {
|
||||
m_autoSelected = m_chooser.GetSelected();
|
||||
// m_autoSelected = SmartDashboard::GetString("Auto Selector",
|
||||
// kAutoNameDefault);
|
||||
std::cout << "Auto selected: " << m_autoSelected << std::endl;
|
||||
fmt::print("Auto selected: {}\n", m_autoSelected);
|
||||
|
||||
if (m_autoSelected == kAutoNameCustom) {
|
||||
// Custom Auto goes here
|
||||
|
||||
Reference in New Issue
Block a user