Hi,
I ran the following simple code and the NXT 2.0 brick just hangs. I keep hearing some ticks but nothing else happens. I upgraded the firmware to 1.31 to make sure but that did not help. Does anyone have any ideas? I assume that float variables are supported in NXT 2.0. Here is the code snippet that causes the problem.
#define Kproportional 6
task main(){
int error = 0;
float proportional = 0;
roboteer, I had a similar problem with float when I first started using NXC. However, I can't remember what the problem turned out to be. It was something really simple though. (I suffer from CRS = Can't Remember Stuff. )
Yup, I got it working. I had a very old version of the firmware installed. By the way, it matters how the color sensor is physically installed. I installed it on the back of the robot and my program now drives it backwards around the track. In case anyone wanted to know.