Package edu.wpi.first.math.proto
Class Controller.ProtobufSimpleMotorFeedforward
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
edu.wpi.first.math.proto.Controller.ProtobufSimpleMotorFeedforward
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Controller
public static final class Controller.ProtobufSimpleMotorFeedforward
extends us.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
implements Cloneable
Protobuf type
ProtobufSimpleMotorFeedforward-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()clearDt()optional double dt = 4;clearKa()optional double ka = 3;clearKs()optional double ks = 1;clearKv()optional double kv = 2;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.DescriptordoublegetDt()optional double dt = 4;static us.hebi.quickbuf.MessageFactory<Controller.ProtobufSimpleMotorFeedforward>doublegetKa()optional double ka = 3;doublegetKs()optional double ks = 1;doublegetKv()optional double kv = 2;booleanhasDt()optional double dt = 4;booleanhasKa()optional double ka = 3;booleanhasKs()optional double ks = 1;booleanhasKv()optional double kv = 2;booleanisEmpty()mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) parseFrom(byte[] data) parseFrom(us.hebi.quickbuf.JsonSource input) parseFrom(us.hebi.quickbuf.ProtoSource input) setDt(double value) optional double dt = 4;setKa(double value) optional double ka = 3;setKs(double value) optional double ks = 1;setKv(double value) optional double kv = 2;voidwriteTo(us.hebi.quickbuf.JsonSink output) voidwriteTo(us.hebi.quickbuf.ProtoSink output) Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
newInstance
- Returns:
- a new empty instance of
ProtobufSimpleMotorFeedforward
-
hasKs
optional double ks = 1;- Returns:
- whether the ks field is set
-
clearKs
optional double ks = 1;- Returns:
- this
-
getKs
optional double ks = 1;- Returns:
- the ks
-
setKs
optional double ks = 1;- Parameters:
value- the ks to set- Returns:
- this
-
hasKv
optional double kv = 2;- Returns:
- whether the kv field is set
-
clearKv
optional double kv = 2;- Returns:
- this
-
getKv
optional double kv = 2;- Returns:
- the kv
-
setKv
optional double kv = 2;- Parameters:
value- the kv to set- Returns:
- this
-
hasKa
optional double ka = 3;- Returns:
- whether the ka field is set
-
clearKa
optional double ka = 3;- Returns:
- this
-
getKa
optional double ka = 3;- Returns:
- the ka
-
setKa
optional double ka = 3;- Parameters:
value- the ka to set- Returns:
- this
-
hasDt
optional double dt = 4;- Returns:
- whether the dt field is set
-
clearDt
optional double dt = 4;- Returns:
- this
-
getDt
optional double dt = 4;- Returns:
- the dt
-
setDt
optional double dt = 4;- Parameters:
value- the dt to set- Returns:
- this
-
copyFrom
public Controller.ProtobufSimpleMotorFeedforward copyFrom(Controller.ProtobufSimpleMotorFeedforward other) - Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
-
mergeFrom
public Controller.ProtobufSimpleMotorFeedforward mergeFrom(Controller.ProtobufSimpleMotorFeedforward other) - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
-
mergeFrom
public Controller.ProtobufSimpleMotorFeedforward mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>- Throws:
IOException
-
mergeFrom
public Controller.ProtobufSimpleMotorFeedforward mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<Controller.ProtobufSimpleMotorFeedforward>
-
parseFrom
public static Controller.ProtobufSimpleMotorFeedforward parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Controller.ProtobufSimpleMotorFeedforward parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Controller.ProtobufSimpleMotorFeedforward parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
public static us.hebi.quickbuf.MessageFactory<Controller.ProtobufSimpleMotorFeedforward> getFactory()- Returns:
- factory for creating ProtobufSimpleMotorFeedforward messages
-
getDescriptor
- Returns:
- this type's descriptor.
-