View Single Post
  #1   Spotlight this post!  
Unread 27-08-2003, 08:57
ZACH P. ZACH P. is offline
Insert Custom User Title
#0321 (Robolancers)
 
Join Date: Jan 2003
Location: Philly!!
Posts: 228
ZACH P. is on a distinguished road
Send a message via AIM to ZACH P.
Comparing Sensor Readings in NQC

Hey guys, I'm prototyping some designs using the LEGO Mindstorms, and Im using Not Quite C . I'm new to this language, and have never worked with C before. That said, I need some help. What I need is tips/help on creating a program that reads the raw value of SENSOR_1, saves it, and then takes another reading and compares it to the origional to see if there was a change. Basically i need a program to monitor the sensor, and then start another task if there is a change in the reading. Any help would be much appreicated.
P.S. If you are going to post code, please include comments that explain it, as i am trying to learn this language. Thanks.
__________________
pi is exactly 3

IM me at: zmstr265