REVLib - C++
|
#include <SparkFlexConfig.h>
Inherits rev::spark::SparkBaseConfig.
Public Attributes | |
ExternalEncoderConfig | externalEncoder |
Public Attributes inherited from rev::spark::SparkBaseConfig | |
AbsoluteEncoderConfig | absoluteEncoder |
AnalogSensorConfig | analogSensor |
ClosedLoopConfig | closedLoop |
EncoderConfig | encoder |
LimitSwitchConfig | limitSwitch |
SignalsConfig | signals |
SoftLimitConfig | softLimit |
Additional Inherited Members | |
Public Types inherited from rev::spark::SparkBaseConfig | |
enum | IdleMode : uint32_t { kCoast = 0 , kBrake = 1 } |
Protected Types inherited from rev::spark::BaseConfig | |
using | SparkConfig_t = std::variant< int32_t, uint32_t, float, bool > |
Protected Member Functions inherited from rev::spark::BaseConfig | |
BaseConfig ()=default | |
BaseConfig (const BaseConfig &)=delete | |
BaseConfig & | operator= (const BaseConfig &)=delete |
BaseConfig (BaseConfig &&) noexcept=delete | |
BaseConfig & | operator= (BaseConfig &&) noexcept=delete |
template<typename ConfigType > | |
void | PutParameter (uint8_t parameterId, ConfigType value) |
std::optional< SparkConfig_t > | GetParameter (uint8_t parameterId) |
std::optional< SparkConfig_t > | GetParameter (BaseConfig &fromConfig, uint8_t parameterId) |
void | RemoveParameter (uint8_t parameterId) |
void | RemoveParameter (BaseConfig &fromConfig, uint8_t parameterId) |
void | Apply (BaseConfig &config) |
|
default |
|
overridedefault |
|
delete |
|
deletenoexcept |
|
delete |
|
deletenoexcept |
SparkFlexConfig & SparkFlexConfig::Apply | ( | SparkFlexConfig & | config | ) |
Applies settings from another SparkFlexConfig to this one, including all of its nested configurations.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The SparkFlexConfig to copy settings from |
SparkFlexConfig & SparkFlexConfig::Apply | ( | ExternalEncoderConfig & | config | ) |
Applies settings from an ExternalEncoderConfig to this SparkFlexConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The ExternalEncoderConfig to copy settings from |
|
overridevirtual |
Reimplemented from rev::spark::SparkBaseConfig.
|
virtual |
Applies settings from another SparkBaseConfig to this one, including all of its nested configurations.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The SparkBaseConfig to copy settings from |
Reimplemented from rev::spark::SparkBaseConfig.
|
virtual |
Applies settings from an AbsoluteEncoderConfig to this SparkBaseConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The AbsoluteEncoderConfig to copy settings from |
Reimplemented from rev::spark::SparkBaseConfig.
|
virtual |
Applies settings from an AnalogSensorConfig to this SparkBaseConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The AnalogSensorConfig to copy settings from |
Reimplemented from rev::spark::SparkBaseConfig.
|
virtual |
Applies settings from an EncoderConfig to this SparkBaseConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The EncoderConfig to copy settings from |
Reimplemented from rev::spark::SparkBaseConfig.
|
virtual |
Applies settings from a LimitSwitchConfig to this SparkBaseConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The LimitSwitchConfig to copy settings from |
Reimplemented from rev::spark::SparkBaseConfig.
|
virtual |
Applies settings from a SoftLimitConfig to this SparkBaseConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The SoftLimitConfig to copy settings from |
Reimplemented from rev::spark::SparkBaseConfig.
|
virtual |
Applies settings from a ClosedLoopConfig to this SparkBaseConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The ClosedLoopConfig to copy settings from |
Reimplemented from rev::spark::SparkBaseConfig.
|
virtual |
Applies settings from a SignalsConfig to this SparkBaseConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The SignalsConfig to copy settings from |
Reimplemented from rev::spark::SparkBaseConfig.
ExternalEncoderConfig rev::spark::SparkFlexConfig::externalEncoder |