Closed incarry closed 4 years ago
while (1) { rt_thread_mdelay(50); motor_run((motor_t)chas->c_wheels[1]->w_motor,1000); rt_kprintf("encoder2 = %d \n",encoder_read((encoder_t)chas->c_wheels[1]->w_encoder)); }
尝试这样执行,电机转不起来,不知道这样写对不对
尝试这样执行,电机转不起来,不知道这样写对不对