Viam C++ SDK current
Loading...
Searching...
No Matches
Public Attributes | List of all members
viam::sdk::Motor::power_status Struct Reference

Information about power-state of the motor. More...

#include <motor.hpp>

Public Attributes

bool is_on
 True if the motor is on.
 
double power_pct
 

Detailed Description

Information about power-state of the motor.

Member Data Documentation

◆ power_pct

double viam::sdk::Motor::power_status::power_pct

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.


The documentation for this struct was generated from the following file: