Skip to main content
4 votes

Please help me: Sending String from PyCharm via usb to NXT, which is programmed by Bricx CC

nxt-python is a popular Python library that can communicate with an NXT via USB or Bluetooth. Most of the APIs are designed to remotely control the NXT, but the Mailbox feature is useful to send ...
David Lechner's user avatar
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
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

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
  • 235
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
  • 71
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,392
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,392
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
  • 41.1k

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