76 bool CheckAndReserveServo(
int channel);
77 void UnreserveServo(
int channel);
79 bool CheckAndReserveMotor(
int channel);
80 void UnreserveMotor(
int channel);
89 static
wpi::
util::mutex m_handleLock;
92 static
std::shared_ptr<
DataStore> GetForUsbId(
int usbId);
basic_string_view< char > string_view
Definition base.h:620
This class controls a specific servo in continuous rotation mode hooked up to an ExpansionHub.
Definition ExpansionHubCRServo.hpp:18
friend class DataStore
Definition ExpansionHub.hpp:85
friend class ExpansionHubCRServo
Definition ExpansionHub.hpp:33
int GetUsbId() const
Gets the USB ID of this hub.
ExpansionHubCRServo MakeCRServo(int channel)
static constexpr int NumMotorPorts
Definition ExpansionHub.hpp:73
ExpansionHubServo MakeServo(int channel)
Constructs a servo at the requested channel on this hub.
static constexpr int NumUsbPorts
Definition ExpansionHub.hpp:71
bool IsHubConnected() const
Gets if the hub is currently connected over USB.
static constexpr int NumServoPorts
Definition ExpansionHub.hpp:72
ExpansionHubMotor MakeMotor(int channel)
Constructs a motor at the requested channel on this hub.
~ExpansionHub() noexcept=default
friend class ExpansionHubServo
Definition ExpansionHub.hpp:31
ExpansionHub(int usbId)
Constructs a new ExpansionHub for a given USB ID.
friend class ExpansionHubMotor
Definition ExpansionHub.hpp:32
This class controls a specific motor and encoder hooked up to an ExpansionHub.
Definition ExpansionHubMotor.hpp:20
This class controls a specific servo in positional/servo mode hooked up to an ExpansionHub.
Definition ExpansionHubServo.hpp:19
Definition StringMap.hpp:773
Definition raw_os_ostream.hpp:19
Definition CvSource.hpp:15