经过处理和计算后的M3508电机状态。
更多...
#include <M3508Frames.hpp>
|
std::string | format () const |
| 将电机状态格式化为可读字符串。
|
|
|
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 |
将电机状态格式化为可读字符串。
- 返回
- 包含状态所有字段信息的字符串。
该结构体的文档由以下文件生成:
- /home/runner/work/OneMotor/OneMotor/include/OneMotor/Motor/DJI/M3508Frames.hpp
- /home/runner/work/OneMotor/OneMotor/src/Motor/DJI/N_M3508Frames.cpp