CTRE Phoenix Pro C++ 23.0.12
|
Parent class for all devices. More...
#include <ctre/phoenixpro/hardware/ParentDevice.hpp>
Public Member Functions | |
ParentDevice (int deviceID, std::string model, std::string canbus) | |
int | GetDeviceID () const |
const std::string & | GetCANBus () const |
std::shared_ptr< const controls::ControlRequest > | GetAppliedControl () const |
Get the latest applied control. More... | |
std::shared_ptr< controls::ControlRequest > | GetAppliedControl () |
Get the latest applied control. More... | |
Static Public Attributes | |
static constexpr double | kDefaultControlRatePeriodsSec = 0.010 |
Protected Member Functions | |
virtual void | ReportIfTooOld ()=0 |
virtual ctre::phoenix::StatusCode | SetControlPrivate (controls::ControlRequest &request) |
template<typename T > | |
StatusSignalValue< T > & | LookupStatusSignalValue (uint16_t spn, std::string signalName, bool reportOnConstruction) |
template<typename T > | |
StatusSignalValue< T > & | LookupStatusSignalValue (uint16_t spn, uint16_t mapper_iter, std::function< std::map< int, StatusSignalValue< T > >()> map_filler, std::string signalName, bool reportOnConstruction) |
template<typename T , typename U > | |
StatusSignalValue< T > | LookupDimensionlessStatusSignalValue (uint16_t spn, std::string signalName) |
Returns a unitless version of the StatusSignalValue by value. More... | |
void | ReportIfTooOld (int minMajor, int minMinor, int minBugfix, int minBuild) |
Protected Attributes | |
DeviceIdentifier | deviceIdentifier |
Parent class for all devices.
|
inline |
|
inline |
Get the latest applied control.
This returns a shared pointer to avoid becoming a dangling pointer due to parallel operations changing the underlying data.
|
inline |
Get the latest applied control.
This returns a shared pointer to avoid becoming a dangling pointer due to parallel operations changing the underlying data.
|
inline |
|
inline |
|
inlineprotected |
Returns a unitless version of the StatusSignalValue by value.
Do not store the result in a reference.
|
inlineprotected |
|
inlineprotected |
|
protectedpure virtual |
|
protected |
|
protectedvirtual |
Reimplemented in ctre::phoenixpro::hardware::TalonFX.
|
protected |
|
staticconstexpr |