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

经过处理和计算后的M3508电机状态。 更多...

#include <M3508Frames.hpp>

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计算后输出给电机的电流值
 

详细描述

经过处理和计算后的M3508电机状态。

此结构体包含了从原始反馈数据中解析出的更有用的信息, 例如处理过的角度、角速度和累计圈数等。

成员函数说明

◆ format()

std::string OneMotor::Motor::DJI::M3508Status::format ( ) const
nodiscard

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

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

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