Class ProtobufDCMotor
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
org.wpilib.math.proto.ProtobufDCMotor
- All Implemented Interfaces:
Cloneable
public final class ProtobufDCMotor
extends us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
implements Cloneable
Protobuf type
ProtobufDCMotor-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional double free_current = 4;optional double free_speed = 5;optional double nominal_voltage = 1;optional double stall_current = 3;optional double stall_torque = 2;clone()protected intcopyFrom(ProtobufDCMotor other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufDCMotor> doubleoptional double free_current = 4;doubleoptional double free_speed = 5;doubleoptional double nominal_voltage = 1;doubleoptional double stall_current = 3;doubleoptional double stall_torque = 2;booleanoptional double free_current = 4;booleanoptional double free_speed = 5;booleanoptional double nominal_voltage = 1;booleanoptional double stall_current = 3;booleanoptional double stall_torque = 2;booleanisEmpty()mergeFrom(ProtobufDCMotor other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufDCMotorstatic ProtobufDCMotorparseFrom(byte[] data) static ProtobufDCMotorparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufDCMotorparseFrom(us.hebi.quickbuf.ProtoSource input) setFreeCurrent(double value) optional double free_current = 4;setFreeSpeed(double value) optional double free_speed = 5;setNominalVoltage(double value) optional double nominal_voltage = 1;setStallCurrent(double value) optional double stall_current = 3;setStallTorque(double value) optional double stall_torque = 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
ProtobufDCMotor
-
hasNominalVoltage
optional double nominal_voltage = 1;- Returns:
- whether the nominalVoltage field is set
-
clearNominalVoltage
-
getNominalVoltage
-
setNominalVoltage
optional double nominal_voltage = 1;- Parameters:
value- the nominalVoltage to set- Returns:
- this
-
hasStallTorque
optional double stall_torque = 2;- Returns:
- whether the stallTorque field is set
-
clearStallTorque
-
getStallTorque
-
setStallTorque
optional double stall_torque = 2;- Parameters:
value- the stallTorque to set- Returns:
- this
-
hasStallCurrent
optional double stall_current = 3;- Returns:
- whether the stallCurrent field is set
-
clearStallCurrent
-
getStallCurrent
-
setStallCurrent
optional double stall_current = 3;- Parameters:
value- the stallCurrent to set- Returns:
- this
-
hasFreeCurrent
optional double free_current = 4;- Returns:
- whether the freeCurrent field is set
-
clearFreeCurrent
-
getFreeCurrent
-
setFreeCurrent
optional double free_current = 4;- Parameters:
value- the freeCurrent to set- Returns:
- this
-
hasFreeSpeed
optional double free_speed = 5;- Returns:
- whether the freeSpeed field is set
-
clearFreeSpeed
-
getFreeSpeed
-
setFreeSpeed
optional double free_speed = 5;- Parameters:
value- the freeSpeed to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
-
parseFrom
public static ProtobufDCMotor parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufDCMotor messages
-
getDescriptor
- Returns:
- this type's descriptor.
-