Right now im trying to make it work on RobotC. I know that this subforum is about coding on Labview but i can't find an answer for my problem =/
I'm working on a project and i really need some help to understand how lego-temp.h works. I want to make a while loop so i can measure the temperature while the robot is moving. The loop will stop when i'll find a temperature higher than the temperature that i have before the robot started moving.
I found out that i can read a temperature with that command --> LEGOTMPreadTemp(S2,temp);
This command is reading from the sensor 2 , my temperature sensor, and writes the result on a variable called temp.
My problem is that i can't find how can i read the temperature while the robot is moving.U can find the lego-temp.h on \Sample Programs\NXT\3rd Party Driver Library\include but i will post it as a link if u can't find it.
Thanks for ur time 😄