[wpilibc] MotorSafety::GetDescription(): Return std::string (#3390)

This is only called in an error condition, so it's not necessary to over
optimize it.
This commit is contained in:
Peter Johnson
2021-05-26 07:25:32 -07:00
committed by GitHub
parent f4e2d26d58
commit 50915cb7ed
15 changed files with 35 additions and 44 deletions

View File

@@ -189,8 +189,8 @@ void DifferentialDrive::StopMotor() {
Feed();
}
void DifferentialDrive::GetDescription(wpi::raw_ostream& desc) const {
desc << "DifferentialDrive";
std::string DifferentialDrive::GetDescription() const {
return "DifferentialDrive";
}
void DifferentialDrive::InitSendable(SendableBuilder& builder) {

View File

@@ -114,8 +114,8 @@ void KilloughDrive::StopMotor() {
Feed();
}
void KilloughDrive::GetDescription(wpi::raw_ostream& desc) const {
desc << "KilloughDrive";
std::string KilloughDrive::GetDescription() const {
return "KilloughDrive";
}
void KilloughDrive::InitSendable(SendableBuilder& builder) {

View File

@@ -109,8 +109,8 @@ MecanumDrive::WheelSpeeds MecanumDrive::DriveCartesianIK(double ySpeed,
wheelSpeeds[kRearLeft], wheelSpeeds[kRearRight]};
}
void MecanumDrive::GetDescription(wpi::raw_ostream& desc) const {
desc << "MecanumDrive";
std::string MecanumDrive::GetDescription() const {
return "MecanumDrive";
}
void MecanumDrive::InitSendable(SendableBuilder& builder) {