V5马达自带编码器,怎么读V5马达里编码器的值呢
求大神指导!!!
你好,可以使用VCS中屏幕打印+电机编码器转动角度语句,以下为VCS C++语句简单示例:
int Encoder=Motor.rotation(rotationUnits::deg);
Brain.Screen.print(Encoder);
相关语句可到VCS API说明页面查询:http://help.vexcodingstudio.com/
我试试,谢谢啦!
V5马达自带编码器,怎么读V5马达里编码器的值呢
求大神指导!!!
你好,可以使用VCS中屏幕打印+电机编码器转动角度语句,以下为VCS C++语句简单示例:
int Encoder=Motor.rotation(rotationUnits::deg);
Brain.Screen.print(Encoder);
相关语句可到VCS API说明页面查询:http://help.vexcodingstudio.com/
我试试,谢谢啦!