NXC float
Posted: 19 Mar 2012, 19:44
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;
proportional = Kproportional * error;
}
Thanks for the help.
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;
proportional = Kproportional * error;
}
Thanks for the help.