Not eXactly C

Not Exactly C ( NXC short ) is a programming language for Lego Mindstorms NXT. The language has a C-like syntax. NXC is constantly evolving, so different versions can be downloaded from the website. In contrast to the IDE BricxCC the NXC compiler for various operating systems is available.

Formation

The first release of NXC, was published in 2007, shortly after the release of NXT under the Mozilla Public License. The inventor, John Hansen, had already been developed for the previous model, the RCX, the language NQC. Hansen is also responsible for the BricxCC IDE.

Special

One of the peculiarities of NXC is that there is no data type for floating point numbers, because such values ​​do not occur when using the motors and sensors of the NXT. With the release of the LEGO MINDSTORMS NXT Firmware version 1.26 floating-point numbers were introduced officially supported in the current release of NXC.

In addition, although NXC offers the possibility to create multi-dimensional arrays, but offers no way directly to the individual elements of the lower levels of access. Provides a remedy by J. Hansen offered modified firmware, which builds on the original by LEGO. Advanced Array Functions are included in firmware 1.07 1.27.

The newer versions of NXC include NXT 2.0 specific commands, for example, to respond to the newly introduced color sensor.

589810
de