Reputation: 1
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 that 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 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. You 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.
Thank you for your time. :D
Upvotes: 0
Views: 68