|
REVLib - C++
|
#include <AnalogSensorConfig.h>
Inherits rev::BaseConfig.
Public Member Functions | |
| AnalogSensorConfig ()=default | |
| ~AnalogSensorConfig () override=default | |
| AnalogSensorConfig (const AnalogSensorConfig &)=default | |
| AnalogSensorConfig & | operator= (const AnalogSensorConfig &)=delete |
| AnalogSensorConfig (AnalogSensorConfig &&) noexcept=delete | |
| AnalogSensorConfig & | operator= (AnalogSensorConfig &&) noexcept=delete |
| AnalogSensorConfig & | Apply (AnalogSensorConfig &config) |
| AnalogSensorConfig & | Inverted (bool inverted) |
Public Member Functions inherited from rev::BaseConfig | |
| virtual | ~BaseConfig ()=default |
| virtual std::string | Flatten () |
Additional Inherited Members | |
Protected Types inherited from rev::BaseConfig | |
| using | ParameterType_t = std::variant<int32_t, uint32_t, float, bool> |
Protected Member Functions inherited from rev::BaseConfig | |
| BaseConfig ()=default | |
| BaseConfig (const BaseConfig &)=default | |
| BaseConfig & | operator= (const BaseConfig &)=delete |
| BaseConfig (BaseConfig &&) noexcept=delete | |
| BaseConfig & | operator= (BaseConfig &&) noexcept=delete |
| template<typename ParameterType > | |
| void | PutParameter (uint8_t parameterId, ParameterType value) |
| std::optional< ParameterType_t > | GetParameter (uint8_t parameterId) |
| void | RemoveParameter (uint8_t parameterId) |
| void | Apply (BaseConfig &config) |
Static Protected Member Functions inherited from rev::BaseConfig | |
| static std::optional< ParameterType_t > | GetParameter (BaseConfig &fromConfig, uint8_t parameterId) |
| static void | RemoveParameter (BaseConfig &fromConfig, uint8_t parameterId) |
|
default |
|
overridedefault |
|
default |
|
deletenoexcept |
|
delete |
|
deletenoexcept |
| AnalogSensorConfig & AnalogSensorConfig::Apply | ( | AnalogSensorConfig & | config | ) |
Applies settings from another AnalogSensorConfig to this one.
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 |
| AnalogSensorConfig & AnalogSensorConfig::Inverted | ( | bool | inverted | ) |
Set the phase of the analog sensor so that it is in phase with the motor itself.
| inverted | The phase of the analog sensor |