Перевод статьи "Программирование LEGO NXT роботов на языке NXC" — различия между версиями

Материал из roboforum.ru Wiki
Перейти к: навигация, поиск
(Создана новая страница размером <center><big>(перевод статьи "Programming LEGO NXT Robots using NXC")</big></center> <center>Исходная статья:...)
 
Строка 5: Строка 5:
  
 
<p align=center><b>Автор: Daniele Benedettelli</b><br><br><i>Перевод: © Ботов Антон aka =DeaD=, 2009<br><br>Эксклюзивно для www.roboforum.ru<br> копирование на другие ресурсы и публикация перевода<br>без разрешения его автора запрещены</i></p>
 
<p align=center><b>Автор: Daniele Benedettelli</b><br><br><i>Перевод: © Ботов Антон aka =DeaD=, 2009<br><br>Эксклюзивно для www.roboforum.ru<br> копирование на другие ресурсы и публикация перевода<br>без разрешения его автора запрещены</i></p>
 +
 +
==Preface==
 +
As happened for good old Mindstorms RIS, CyberMaster, and Spybotics, to unleash the full power of
 +
Mindstorms NXT brick, you need a programming environment that is more handy than NXT-G, the National
 +
Instruments Labview-like graphical language that comes with NXT retail set.
 +
 +
NXC is a programming language, invented by John Hansen, which was especially designed for the Lego robots.
 +
If you have never written a program before, don't worry. NXC is really easy to use and this tutorial will lead you
 +
on your first steps towards it.
 +
 +
To make writing programs even easier, there is the Bricx Command Center (BricxCC). This utility helps you to
 +
write your programs, to download them to the robot, to start and stop them, browse NXT flash memory, convert
 +
sound files for use with the brick, and much more. BricxCC works almost like a text processor, but with some
 +
extras. This tutorial will use BricxCC (version 3.3.7.16 or higher) as integrated development environment (IDE).
 +
 +
You can download it for free from the web at the address
 +
* [[http://bricxcc.sourceforge.net/ http://bricxcc.sourceforge.net/]]
 +
 +
BricxCC runs on Windows PCs (95, 98, ME, NT, 2K, XP, Vista). The NXC language can also be used on other
 +
platforms. You can download it from the web page
 +
* [[http://bricxcc.sourceforge.net/nxc/ http://bricxcc.sourceforge.net/nxc/]]
 +
 +
Most of this tutorial should also apply to other platforms, except that you loose some of the tools included in
 +
BricxCC and the color-coding.
 +
 +
The tutorial has been updated to work with beta 30 of NXC and higher versions. Some of the sample programs
 +
will not compile with versions older than beta 30.
 +
 +
As side note, my webpage is full of Lego Mindstorms RCX and NXT related content, including a PC tool to
 +
communicate with NXT:
 +
* [[http://daniele.benedettelli.com http://daniele.benedettelli.com]]
 +
 +
===Acknowledgements===
 +
Many thanks go to John Hansen, whose work is priceless!

Версия 13:08, 16 мая 2009

(перевод статьи "Programming LEGO NXT Robots using NXC")


Исходная статья: [http://bricxcc.sourceforge.net/nbc/nxcdoc/NXC_tutorial.pdf]

Автор: Daniele Benedettelli

Перевод: © Ботов Антон aka =DeaD=, 2009

Эксклюзивно для www.roboforum.ru
копирование на другие ресурсы и публикация перевода
без разрешения его автора запрещены

Preface

As happened for good old Mindstorms RIS, CyberMaster, and Spybotics, to unleash the full power of Mindstorms NXT brick, you need a programming environment that is more handy than NXT-G, the National Instruments Labview-like graphical language that comes with NXT retail set.

NXC is a programming language, invented by John Hansen, which was especially designed for the Lego robots. If you have never written a program before, don't worry. NXC is really easy to use and this tutorial will lead you on your first steps towards it.

To make writing programs even easier, there is the Bricx Command Center (BricxCC). This utility helps you to write your programs, to download them to the robot, to start and stop them, browse NXT flash memory, convert sound files for use with the brick, and much more. BricxCC works almost like a text processor, but with some extras. This tutorial will use BricxCC (version 3.3.7.16 or higher) as integrated development environment (IDE).

You can download it for free from the web at the address

BricxCC runs on Windows PCs (95, 98, ME, NT, 2K, XP, Vista). The NXC language can also be used on other platforms. You can download it from the web page

Most of this tutorial should also apply to other platforms, except that you loose some of the tools included in BricxCC and the color-coding.

The tutorial has been updated to work with beta 30 of NXC and higher versions. Some of the sample programs will not compile with versions older than beta 30.

As side note, my webpage is full of Lego Mindstorms RCX and NXT related content, including a PC tool to communicate with NXT:

Acknowledgements

Many thanks go to John Hansen, whose work is priceless!