Link

开环运动控制

选择电机类型:

BLDC 电机 步进电机

选择电压控制类型:

位置控制 速度控制

简易FOC 为您提供了两种不同的开环控制策略选择,这些控制策略不需要位置传感器:

索引搜索也使用开环速度控制,但有一些额外参数,参见 索引搜索


您可以通过更改 motor.controller 变量来设置开环模式。如果您想控制电机角度,可将 controller 设置为 MotionControlType::angle_openloop;如果您想控制电机角速度,可设置为 MotionControlType::velocity_openloop

// MotionControlType::velocity_openloop    - velocity open-loop control
// MotionControlType::angle_openloop       - position open-loop control
motor.controller = MotionControlType::angle_openloop;

有关运动控制策略的源代码实现的更多信息,请查看 库源代码文档