Hot answers tagged

3 votes

Program for NXT golf robot not looping properly

Looking at your code, there are a few things that you need to consider. Firstly, you have a while (true) loop which will run infinitely. The first thing you have after the loop is OnFwd(...) which ...
Holmez's user avatar
  • 147
2 votes

Mindstorms NXT NXC RemoteStopProgram fails compilation

Try changing which version of BricxCC you're using to one of the later releases: http://bricxcc.sourceforge.net/test_releases/?C=M;O=D What version are you using now? I duplicated the compile error ...
bitbob's user avatar
  • 51
2 votes
Accepted

Absolute position regulation NXC

According to the docs (emphasis added): Warning This function requires the enhanced NBC/NXC firmware version 1.31+ Make sure you are using the enhanced firmware provided with NXC and not the ...
David Lechner's user avatar
2 votes

How to store a matrix of values and pick out certain elements and compute the difference?

This application does seem to be pushing the limits of the official software provided by LEGO. If you are interested in C/C++ (or any other programming language), check out http://www.ev3dev.org. I ...
David Lechner's user avatar
2 votes

Help with this .nxc Tripod program

I got this to work. Set the optimisation level to 1 on the NBC/NXC tab of the compilation options. Then recompile and download.
A_M's user avatar
  • 121
2 votes

How to flash a LEGO Mindstorms brick and program it in another language

I've had great success with Bricx Command Center or BricxCC (as mentioned in this post) on my NXT using NXC (which is easy to pick-up when you already have a C/C++ foundation like you've mentioned). ...
Nita's user avatar
  • 245
1 vote

Get robot to face perpendicular to nearest object, using the ultrasonic sensor in NXC?

I like your username. I'm not exactly good at NXC either, but I'm experienced in C and Java. So here's some pseudocode that should get the job done. This will rotate the scanning motor 180 degrees, ...
MindS1's user avatar
  • 1,352
1 vote

How to flash a LEGO Mindstorms brick and program it in another language

In my experience, most 3rd-party firmware can be flashed to the NXT brick using the standard NXT-G software "Firmware Update Tool." As others have mentioned, BricxCC with NXC is also a great option. ...
MindS1's user avatar
  • 1,352
1 vote
Accepted

How to represent infinity in NXC?

I don't believe that a constant or macro is available in NXC for positive infinity. C99 defines INFINITY in math.h, but the math module in NXC does not appear to include this. NXC uses IEEE 754 ...
jncraton's user avatar
  • 39.8k
1 vote

Help with this .nxc Tripod program

I had the exact same problem when I built the tripod. This program is written in BrickCC, instead of the standard NXT-G. The way to solve this is to download and install the compiler for brickCC, ...
noided's user avatar
  • 23

Only top scored, non community-wiki answers of a minimum length are eligible