Use llvm::Twine across C++ Command structure.

This commit is contained in:
Peter Johnson
2017-12-01 20:50:35 -08:00
parent 001dedf3b2
commit ab137abab5
22 changed files with 52 additions and 45 deletions

View File

@@ -11,7 +11,7 @@
using namespace frc;
PIDCommand::PIDCommand(const std::string& name, double p, double i, double d,
PIDCommand::PIDCommand(const llvm::Twine& name, double p, double i, double d,
double f, double period)
: Command(name) {
m_controller = std::make_shared<PIDController>(p, i, d, this, this, period);
@@ -22,12 +22,12 @@ PIDCommand::PIDCommand(double p, double i, double d, double f, double period) {
std::make_shared<PIDController>(p, i, d, f, this, this, period);
}
PIDCommand::PIDCommand(const std::string& name, double p, double i, double d)
PIDCommand::PIDCommand(const llvm::Twine& name, double p, double i, double d)
: Command(name) {
m_controller = std::make_shared<PIDController>(p, i, d, this, this);
}
PIDCommand::PIDCommand(const std::string& name, double p, double i, double d,
PIDCommand::PIDCommand(const llvm::Twine& name, double p, double i, double d,
double period)
: Command(name) {
m_controller = std::make_shared<PIDController>(p, i, d, this, this, period);