Go to Post I hate mini-bots. - Gdeaver [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spreadsheet comparing ALL First motors Nuts4FIRST Motors 0 08-01-2002 09:20


All times are GMT -5. The time now is 00:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi