Interface Motor.StatusOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
Motor.Status, Motor.Status.Builder
Enclosing class:
Motor

public static interface Motor.StatusOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the motor is moving
    boolean
    Returns true if the motor is powered
    double
    Returns current position of the motor relative to its home

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getIsPowered

      boolean getIsPowered()
       Returns true if the motor is powered
       
      bool is_powered = 1 [json_name = "isPowered"];
      Returns:
      The isPowered.
    • getPosition

      double getPosition()
       Returns current position of the motor relative to its home
       
      double position = 3 [json_name = "position"];
      Returns:
      The position.
    • getIsMoving

      boolean getIsMoving()
       Returns true if the motor is moving
       
      bool is_moving = 4 [json_name = "isMoving"];
      Returns:
      The isMoving.