200 int limitRpm = 20000);
306 std::
string Flatten() override;
Definition: AbsoluteEncoderConfig.h:35
Definition: AnalogSensorConfig.h:35
Definition: BaseConfig.h:40
Definition: ClosedLoopConfig.h:40
Definition: EncoderConfig.h:35
Definition: LimitSwitchConfig.h:35
Definition: SignalsConfig.h:35
Definition: SoftLimitConfig.h:35
Definition: SparkBaseConfig.h:46
virtual SparkBaseConfig & VoltageCompensation(double nominalVoltage)
Definition: SparkBaseConfig.cpp:132
EncoderConfig encoder
Definition: SparkBaseConfig.h:311
virtual SparkBaseConfig & DisableVoltageCompensation()
Definition: SparkBaseConfig.cpp:139
~SparkBaseConfig() override=default
IdleMode
Definition: SparkBaseConfig.h:48
@ kCoast
Definition: SparkBaseConfig.h:48
@ kBrake
Definition: SparkBaseConfig.h:48
SoftLimitConfig softLimit
Definition: SparkBaseConfig.h:314
virtual SparkBaseConfig & OpenLoopRampRate(double rate)
Definition: SparkBaseConfig.cpp:114
virtual SparkBaseConfig & Inverted(bool inverted)
Definition: SparkBaseConfig.cpp:89
virtual SparkBaseConfig & Apply(SparkBaseConfig &config)
Definition: SparkBaseConfig.cpp:37
SparkBaseConfig(SparkBaseConfig &&) noexcept=delete
ClosedLoopConfig closedLoop
Definition: SparkBaseConfig.h:310
virtual SparkBaseConfig & DisableFollowerMode()
Definition: SparkBaseConfig.cpp:155
std::string Flatten() override
Definition: SparkBaseConfig.cpp:161
SparkBaseConfig & operator=(const SparkBaseConfig &)=delete
SignalsConfig signals
Definition: SparkBaseConfig.h:313
virtual SparkBaseConfig & Follow(int leaderCanId, bool invert=false)
Definition: SparkBaseConfig.cpp:144
virtual SparkBaseConfig & ClosedLoopRampRate(double rate)
Definition: SparkBaseConfig.cpp:123
AbsoluteEncoderConfig absoluteEncoder
Definition: SparkBaseConfig.h:308
AnalogSensorConfig analogSensor
Definition: SparkBaseConfig.h:309
SparkBaseConfig(const SparkBaseConfig &)=delete
virtual SparkBaseConfig & SmartCurrentLimit(int stallLimit, int freeLimit=0, int limitRpm=20000)
Definition: SparkBaseConfig.cpp:94
LimitSwitchConfig limitSwitch
Definition: SparkBaseConfig.h:312
virtual SparkBaseConfig & SecondaryCurrentLimit(double limit, int chopCycles=0)
Definition: SparkBaseConfig.cpp:106
SparkBaseConfig()=default
virtual SparkBaseConfig & SetIdleMode(IdleMode idleMode)
Definition: SparkBaseConfig.cpp:84
Definition: SparkBase.h:57
Definition: SparkLowLevel.cpp:40