mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[commands] SubsystemBase: allow setting name in constructor (#6052)
This commit is contained in:
@@ -63,6 +63,15 @@ class SubsystemBase : public Subsystem,
|
||||
void AddChild(std::string name, wpi::Sendable* child);
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Constructor. Telemetry/log name defaults to the classname.
|
||||
*/
|
||||
SubsystemBase();
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param name Name of the subsystem for telemetry and logging.
|
||||
*/
|
||||
explicit SubsystemBase(std::string_view name);
|
||||
};
|
||||
} // namespace frc2
|
||||
|
||||
Reference in New Issue
Block a user