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 int
copyFrom
(Plant.ProtobufDCMotor other) boolean
static us.hebi.quickbuf.Descriptors.Descriptor
static us.hebi.quickbuf.MessageFactory<Plant.ProtobufDCMotor>
double
optional double free_current = 4;
double
optional double free_speed = 5;
double
optional double nominal_voltage = 1;
double
optional double stall_current = 3;
double
optional double stall_torque = 2;
boolean
optional double free_current = 4;
boolean
optional double free_speed = 5;
boolean
optional double nominal_voltage = 1;
boolean
optional double stall_current = 3;
boolean
optional double stall_torque = 2;
boolean
isEmpty()
mergeFrom
(Plant.ProtobufDCMotor other) mergeFrom
(us.hebi.quickbuf.JsonSource input) mergeFrom
(us.hebi.quickbuf.ProtoSource input) static Plant.ProtobufDCMotor
static Plant.ProtobufDCMotor
parseFrom
(byte[] data) static Plant.ProtobufDCMotor
parseFrom
(us.hebi.quickbuf.JsonSource input) static Plant.ProtobufDCMotor
parseFrom
(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;
void
writeTo
(us.hebi.quickbuf.JsonSink output) void
writeTo
(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:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
mergeFrom
- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Plant.ProtobufDCMotor>
-
isEmpty
- Overrides:
isEmpty
in 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.
-