首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 一个python编程乐高MINDSTORMS机器人NXC转换器

一个python编程乐高MINDSTORMS机器人NXC转换器

  • 资源大小:2.75 MB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: python Robotics lego mindstorms

资 源 简 介

Welcome to PyNXC! PyNXC is a project which converts python code to "Not Exactly C" (NXC) (http://bricxcc.sourceforge.net/nbc/) code, to download to LEGO MINDSTORMS Robots. PyNXC at a Glance The following program moves the robot forward until the touch sensor (bumper) on port 1 is pressed: def main(): DefineSensors(TOUCH,None,None,None) OnFwd(OUT_AC, 75) while SensorVal(1) != 1: pass Off(OUT_AC) Compiled and downloaded to the robot with: $ ./pynxc --download program_name.py PyNXC GUI Interface PyNXC also provides a simple GUI interface to load files, and download them to the robot. Error messages are displayed in the window. Run without any options $ ./pynxc or simply double-click on the PyNXC file. Getting Started To start using PyNXC and see what you can do with it, go to the GettingStarted page, and t

文 件 列 表

pynxc
pynxc.pyw
yaml
nxc
waxy
tutorial_samples
10_mutex.py
ast_template.py
MyDefs.h
VIP VIP
0.174555s