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
-
Method Summary
Modifier and Type Method Description Plant.ProtobufDCMotor
clear()
Plant.ProtobufDCMotor
clearFreeCurrent()
optional double free_current = 4;
Plant.ProtobufDCMotor
clearFreeSpeed()
optional double free_speed = 5;
Plant.ProtobufDCMotor
clearNominalVoltage()
optional double nominal_voltage = 1;
Plant.ProtobufDCMotor
clearQuick()
Plant.ProtobufDCMotor
clearStallCurrent()
optional double stall_current = 3;
Plant.ProtobufDCMotor
clearStallTorque()
optional double stall_torque = 2;
Plant.ProtobufDCMotor
clone()
protected int
computeSerializedSize()
Plant.ProtobufDCMotor
copyFrom(Plant.ProtobufDCMotor other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Plant.ProtobufDCMotor>
getFactory()
double
getFreeCurrent()
optional double free_current = 4;
double
getFreeSpeed()
optional double free_speed = 5;
double
getNominalVoltage()
optional double nominal_voltage = 1;
double
getStallCurrent()
optional double stall_current = 3;
double
getStallTorque()
optional double stall_torque = 2;
boolean
hasFreeCurrent()
optional double free_current = 4;
boolean
hasFreeSpeed()
optional double free_speed = 5;
boolean
hasNominalVoltage()
optional double nominal_voltage = 1;
boolean
hasStallCurrent()
optional double stall_current = 3;
boolean
hasStallTorque()
optional double stall_torque = 2;
boolean
isEmpty()
Plant.ProtobufDCMotor
mergeFrom(Plant.ProtobufDCMotor other)
Plant.ProtobufDCMotor
mergeFrom(us.hebi.quickbuf.JsonSource input)
Plant.ProtobufDCMotor
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Plant.ProtobufDCMotor
newInstance()
static Plant.ProtobufDCMotor
parseFrom(byte[] data)
static Plant.ProtobufDCMotor
parseFrom(us.hebi.quickbuf.JsonSource input)
static Plant.ProtobufDCMotor
parseFrom(us.hebi.quickbuf.ProtoSource input)
Plant.ProtobufDCMotor
setFreeCurrent(double value)
optional double free_current = 4;
Plant.ProtobufDCMotor
setFreeSpeed(double value)
optional double free_speed = 5;
Plant.ProtobufDCMotor
setNominalVoltage(double value)
optional double nominal_voltage = 1;
Plant.ProtobufDCMotor
setStallCurrent(double value)
optional double stall_current = 3;
Plant.ProtobufDCMotor
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
public static Plant.ProtobufDCMotor parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufDCMotor messages
-
getDescriptor
- Returns:
- this type's descriptor.
-