REVLib - C++
|
#include <SparkMaxConfig.h>
Inherits rev::spark::SparkBaseConfig.
Public Types | |
enum | DataPortConfig { kInvalid = -1 , kLimitSwitchesAndAbsoluteEncoder = 0 , kAlternateEncoder = 1 } |
Public Types inherited from rev::spark::SparkBaseConfig | |
enum | IdleMode : uint32_t { kCoast = 0 , kBrake = 1 } |
Public Attributes | |
AlternateEncoderConfig | alternateEncoder |
Public Attributes inherited from rev::spark::SparkBaseConfig | |
AbsoluteEncoderConfig | absoluteEncoder |
AnalogSensorConfig | analogSensor |
ClosedLoopConfig | closedLoop |
EncoderConfig | encoder |
LimitSwitchConfig | limitSwitch |
SignalsConfig | signals |
SoftLimitConfig | softLimit |
Additional Inherited Members | |
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 |
SparkMaxConfig & SparkMaxConfig::Apply | ( | SparkMaxConfig & | config | ) |
Applies settings from another SparkMaxConfig 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 SparkMaxConfig to copy settings from |
SparkMaxConfig & SparkMaxConfig::Apply | ( | AlternateEncoderConfig & | config | ) |
Applies settings from an AlternateEncoderConfig to this SparkMaxConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
config | The AlternateEncoderConfig 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.
AlternateEncoderConfig rev::spark::SparkMaxConfig::alternateEncoder |