toolman1981
Programmer
Hi All,
I have a question about the language NQC, it is a specific language used to program LEGO robotics. I am not very familiar with it or c but thought I'd post here anyway. I have done a lot of programming, but it has all been with Fortran so far (I am a Mech engineer!!).
Ok all I want to do is write some code that executes a command only if two touch sensors are pushed the right amount of times in the right order.
e.g.
if sensor 1 is pushed twice, then if sensor 2 is pushed 3 times, then sensor 1 once, then sensor 2 twice then execute a set command.
How could I write this code in c??
Thanks for any help, Tim.
I have a question about the language NQC, it is a specific language used to program LEGO robotics. I am not very familiar with it or c but thought I'd post here anyway. I have done a lot of programming, but it has all been with Fortran so far (I am a Mech engineer!!).
Ok all I want to do is write some code that executes a command only if two touch sensors are pushed the right amount of times in the right order.
e.g.
if sensor 1 is pushed twice, then if sensor 2 is pushed 3 times, then sensor 1 once, then sensor 2 twice then execute a set command.
How could I write this code in c??
Thanks for any help, Tim.