Class ProtobufDCMotor

java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
org.wpilib.math.system.proto.detail.ProtobufDCMotor
All Implemented Interfaces:
Cloneable

public final class ProtobufDCMotor extends us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor> implements Cloneable
Protobuf type ProtobufDCMotor
  • Method Details

    • newInstance

      public static ProtobufDCMotor newInstance()
      Returns:
      a new empty instance of ProtobufDCMotor
    • hasNominalVoltage

      public boolean hasNominalVoltage()
      optional double nominal_voltage = 1;
      Returns:
      whether the nominalVoltage field is set
    • clearNominalVoltage

      public ProtobufDCMotor clearNominalVoltage()
      optional double nominal_voltage = 1;
      Returns:
      this
    • getNominalVoltage

      public double getNominalVoltage()
      optional double nominal_voltage = 1;
      Returns:
      the nominalVoltage
    • setNominalVoltage

      public ProtobufDCMotor setNominalVoltage(double value)
      optional double nominal_voltage = 1;
      Parameters:
      value - the nominalVoltage to set
      Returns:
      this
    • hasStallTorque

      public boolean hasStallTorque()
      optional double stall_torque = 2;
      Returns:
      whether the stallTorque field is set
    • clearStallTorque

      public ProtobufDCMotor clearStallTorque()
      optional double stall_torque = 2;
      Returns:
      this
    • getStallTorque

      public double getStallTorque()
      optional double stall_torque = 2;
      Returns:
      the stallTorque
    • setStallTorque

      public ProtobufDCMotor setStallTorque(double value)
      optional double stall_torque = 2;
      Parameters:
      value - the stallTorque to set
      Returns:
      this
    • hasStallCurrent

      public boolean hasStallCurrent()
      optional double stall_current = 3;
      Returns:
      whether the stallCurrent field is set
    • clearStallCurrent

      public ProtobufDCMotor clearStallCurrent()
      optional double stall_current = 3;
      Returns:
      this
    • getStallCurrent

      public double getStallCurrent()
      optional double stall_current = 3;
      Returns:
      the stallCurrent
    • setStallCurrent

      public ProtobufDCMotor setStallCurrent(double value)
      optional double stall_current = 3;
      Parameters:
      value - the stallCurrent to set
      Returns:
      this
    • hasFreeCurrent

      public boolean hasFreeCurrent()
      optional double free_current = 4;
      Returns:
      whether the freeCurrent field is set
    • clearFreeCurrent

      public ProtobufDCMotor clearFreeCurrent()
      optional double free_current = 4;
      Returns:
      this
    • getFreeCurrent

      public double getFreeCurrent()
      optional double free_current = 4;
      Returns:
      the freeCurrent
    • setFreeCurrent

      public ProtobufDCMotor setFreeCurrent(double value)
      optional double free_current = 4;
      Parameters:
      value - the freeCurrent to set
      Returns:
      this
    • hasFreeSpeed

      public boolean hasFreeSpeed()
      optional double free_speed = 5;
      Returns:
      whether the freeSpeed field is set
    • clearFreeSpeed

      public ProtobufDCMotor clearFreeSpeed()
      optional double free_speed = 5;
      Returns:
      this
    • getFreeSpeed

      public double getFreeSpeed()
      optional double free_speed = 5;
      Returns:
      the freeSpeed
    • setFreeSpeed

      public ProtobufDCMotor setFreeSpeed(double value)
      optional double free_speed = 5;
      Parameters:
      value - the freeSpeed to set
      Returns:
      this
    • copyFrom

      public ProtobufDCMotor copyFrom(ProtobufDCMotor other)
      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
    • mergeFrom

      public ProtobufDCMotor mergeFrom(ProtobufDCMotor other)
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
    • clear

      public ProtobufDCMotor clear()
      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
    • clearQuick

      public ProtobufDCMotor clearQuick()
      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
    • writeTo

      public void writeTo(us.hebi.quickbuf.ProtoSink output) throws IOException
      Specified by:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
      Throws:
      IOException
    • computeSerializedSize

      protected int computeSerializedSize()
      Specified by:
      computeSerializedSize in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
    • mergeFrom

      public ProtobufDCMotor mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Specified by:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
      Throws:
      IOException
    • writeTo

      public void writeTo(us.hebi.quickbuf.JsonSink output) throws IOException
      Overrides:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
      Throws:
      IOException
    • mergeFrom

      public ProtobufDCMotor mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
      Throws:
      IOException
    • clone

      public ProtobufDCMotor clone()
      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class us.hebi.quickbuf.ProtoMessage<ProtobufDCMotor>
    • parseFrom

      public static ProtobufDCMotor parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException
      Throws:
      us.hebi.quickbuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtobufDCMotor parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtobufDCMotor parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Throws:
      IOException
    • getFactory

      public static us.hebi.quickbuf.MessageFactory<ProtobufDCMotor> getFactory()
      Returns:
      factory for creating ProtobufDCMotor messages
    • getDescriptor

      public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Returns:
      this type's descriptor.