To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 4114
4113  |  4115
Subject: 
RE: check_sensors.c
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 7 Jul 1998 10:07:37 GMT
Original-From: 
Joe Martin <joema@mpx.(saynotospam)com.au>
Viewed: 
1274 times
  
Terry,
        It seems that alot of the problems with this piece of code are
syntax errors, you could correct alot of these by looking up the secific
syntax in the HB manual and there may or may not be a few things that I
would have done differently depending on what exectly you want to do.Do you
just want to display the information about the inputs on the LCD
display?Please explain.
Joe Martin
    -----Original Message-----
    From: Terry Garthright [mailto:669@worldnet.att.net]
    Sent: Saturday, 4 July 1998 2:37
    To: handyboard@media.mit.edu
    Subject: check_sensors.c


    Hello All,

    I would like to write code for the handyboard to constantly

    monitor inputs.

    I copied this this code from the mail arcives 3-22-97, whats wrong??

                                    Thanks in Advance

                                    Terry Gathright

                                    669@worldnet.att.net



    /* GLOBALS*/

    int num_sensors =6 /* put the number of analog sensor inputs you want*/

    void main()

    {

    int sensors[num_sensors];

    int counter;

    while

    {

    counter = 0;

    while (counter < num_sensors)

    {

    sensors[counter] = analog(counter);

    printf("%d",sensors [counter] );

    counter++;

    }

    printf("/n");

    sleep(.5);

    }

    }



--
MIME ATTACHMENTS DISCARDED:

1.  Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    Content-Length: 3246



Message is in Reply To:
  check_sensors.c
 
Hello All, I would like to write code for the handyboard to constantly monitor inputs. I copied this this code from the mail arcives 3-22-97, whats wrong?? Thanks in Advance Terry Gathright 669@worldnet.att.net /* GLOBALS*/ int num_sensors =6 /* put (...) (26 years ago, 3-Jul-98, to lugnet.robotics.handyboard)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR