Package com.viam.component.motor.v1
Interface Motor.IsPoweredResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Motor.IsPoweredResponse
,Motor.IsPoweredResponse.Builder
- Enclosing class:
- Motor
public static interface Motor.IsPoweredResponseOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getIsOn()
Returns true if the motor is ondouble
Returns power percent (from 0 to 1, or from -1 to 1 for motors that support negative power), based on the last command sent to motor.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getIsOn
boolean getIsOn()Returns true if the motor is on
bool is_on = 1 [json_name = "isOn"];
- Returns:
- The isOn.
-
getPowerPct
double getPowerPct()Returns power percent (from 0 to 1, or from -1 to 1 for motors that support negative power), based on the last command sent to motor. If the last command was a stop command, this value will be 0.
double power_pct = 2 [json_name = "powerPct"];
- Returns:
- The powerPct.
-