TIM1_OCIdleState是检测定时器是否空闲,USART_HardwareFlowControl是硬件数据流控制,这个一般是设为无
(115200, 8, distortos::devices::UartParity::none, false); distortos::chip::configurePin(distortos::chip::Pin::pa3, distortos::chip::PinConfiguration::inputWithPullUpDown, true); distortos::chip::configurePin(distortos::chip::Pin::pa2, distortos::chip::PinConfiguration::pushPull50Mhz...
The closed-loop drive is to feedback the rotation angle of the stepping motor to the control panel, compare the distance that needs to be rotated with the distance of the actual rotation, calculate the error value, and then compensate, so as to prevent t