Package edu.wpi.first.math.proto
Class Plant.ProtobufDCMotor
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
edu.wpi.first.math.proto.Plant.ProtobufDCMotor
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Plant
public static final class Plant.ProtobufDCMotor
extends us.hebi.quickbuf.ProtoMessage<Plant.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(Plant.ProtobufDCMotor other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<Plant.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(Plant.ProtobufDCMotor other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static Plant.ProtobufDCMotorstatic Plant.ProtobufDCMotorparseFrom(byte[] data) static Plant.ProtobufDCMotorparseFrom(us.hebi.quickbuf.JsonSource input) static Plant.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
optional double nominal_voltage = 1;- Returns:
- this
-
getNominalVoltage
optional double nominal_voltage = 1;- Returns:
- the nominalVoltage
-
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
optional double stall_torque = 2;- Returns:
- this
-
getStallTorque
optional double stall_torque = 2;- Returns:
- the stallTorque
-
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
optional double stall_current = 3;- Returns:
- this
-
getStallCurrent
optional double stall_current = 3;- Returns:
- the stallCurrent
-
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
optional double free_current = 4;- Returns:
- this
-
getFreeCurrent
optional double free_current = 4;- Returns:
- the freeCurrent
-
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
optional double free_speed = 5;- Returns:
- this
-
getFreeSpeed
optional double free_speed = 5;- Returns:
- the freeSpeed
-
setFreeSpeed
optional double free_speed = 5;- Parameters:
value- the freeSpeed to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
parseFrom
public static Plant.ProtobufDCMotor parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Plant.ProtobufDCMotor parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufDCMotor messages
-
getDescriptor
- Returns:
- this type's descriptor.
-