One Motor 0.6.0
RoboMaster全平台一站式电机驱动库
载入中...
搜索中...
未找到
OneMotor::Motor::DJI::MotorStatus结构体 参考

Public 成员函数

std::string format () const
 将电机状态格式化为可读字符串。
 

Public 属性

uint16_t last_ecd
 上一次的编码器值
 
uint16_t ecd
 当前编码器值
 
float angle_single_round
 单圈角度 (0-360°)
 
float angular
 角速度 (度/秒)
 
int16_t real_current
 实际电流 (mA)
 
uint8_t temperature
 温度 (°C)
 
float total_angle
 累计总角度 (°),带方向
 
int32_t total_round
 累计总圈数,带方向
 
int16_t output_current
 PID计算后输出给电机的电流值
 

成员函数说明

◆ format()

std::string OneMotor::Motor::DJI::MotorStatus::format ( ) const
inlinenodiscard

将电机状态格式化为可读字符串。

返回
包含状态所有字段信息的字符串。

该结构体的文档由以下文件生成: