REVLib - C++
|
#include <ServoHubConfig.h>
Inherits rev::BaseConfig.
Public Member Functions | |
ServoHubConfig ()=default | |
~ServoHubConfig () override=default | |
ServoHubConfig (const ServoHubConfig &)=delete | |
ServoHubConfig & | operator= (const ServoHubConfig &)=delete |
ServoHubConfig (ServoHubConfig &&) noexcept=delete | |
ServoHubConfig & | operator= (ServoHubConfig &&) noexcept=delete |
ServoHubConfig & | Apply (ServoHubConfig &config) |
ServoHubConfig & | Apply (ServoChannel::ChannelId channelId, ServoChannelConfig &config) |
std::string | Flatten () override |
Public Member Functions inherited from rev::BaseConfig | |
virtual | ~BaseConfig ()=default |
Additional Inherited Members | |
Protected Types inherited from rev::BaseConfig | |
using | REVLibConfig_t = std::variant< int32_t, uint32_t, float, bool > |
Protected Member Functions inherited from rev::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< REVLibConfig_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< REVLibConfig_t > | GetParameter (BaseConfig &fromConfig, uint8_t parameterId) |
static void | RemoveParameter (BaseConfig &fromConfig, uint8_t parameterId) |
|
default |
|
overridedefault |
|
delete |
|
deletenoexcept |
|
delete |
|
deletenoexcept |
ServoHubConfig & ServoHubConfig::Apply | ( | ServoHubConfig & | config | ) |
Applies settings from another ServoHubConfig to this one.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
channelId | The channel to apply the settings to |
config | The ServoChannelConfig to apply settings from |
ServoHubConfig & ServoHubConfig::Apply | ( | ServoChannel::ChannelId | channelId, |
ServoChannelConfig & | config | ||
) |
Applies settings from a ServoChannelConfig to this ServoHubConfig.
Settings in the provided config will overwrite existing values in this object. Settings not specified in the provided config remain unchanged.
channelId | The channel to apply the settings to |
config | The ServoChannelConfig to apply settings from |
|
overridevirtual |
Reimplemented from rev::BaseConfig.
ServoChannelConfig rev::servohub::ServoHubConfig::channel0 {ServoChannel::ChannelId::kChannelId0} |
ServoChannelConfig rev::servohub::ServoHubConfig::channel1 {ServoChannel::ChannelId::kChannelId1} |
ServoChannelConfig rev::servohub::ServoHubConfig::channel2 {ServoChannel::ChannelId::kChannelId2} |
ServoChannelConfig rev::servohub::ServoHubConfig::channel3 {ServoChannel::ChannelId::kChannelId3} |
ServoChannelConfig rev::servohub::ServoHubConfig::channel4 {ServoChannel::ChannelId::kChannelId4} |
ServoChannelConfig rev::servohub::ServoHubConfig::channel5 {ServoChannel::ChannelId::kChannelId5} |