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 / 5275
5274  |  5276
Subject: 
Re: Expansion Board Files
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 28 Jan 1999 01:08:10 GMT
Original-From: 
Terry P. Gathright <669@WORLDNET.avoidspamATT.NET>
Viewed: 
982 times
  
Thanks Fred and you too Ranjit,
I have just now got my board to accept the expansion board files.
I reloaded the expansion board zip files,installed in ic but still would
not load.
It did not give a error message for the expsens.c file but did for the
lib_hb.c file. There were <little squares> throughout the code outside the
comment lines starting with line 2.  I deleted all squares but then it gave
a error message for line 251--the last line.
I cut lines 248 thru 251, the last function, and the code loaded so I
pasted the lines back in and it seems to work now even with lines back
in???
I have deleted the squares before but never any thing else.

Anyhow, I want to thank you verry, verry much and also Ranjt because I have
been working on this problem for weeks.
I have checked one servo port and three of the analog ports I was so
excited about getting it to work haven't even checked out the rest of the
board .
looks like the worm turned!
Thanks
Terry Gathright

----------
From: Fred G. Martin <fredm@media.mit.edu>
To: Terry P. Gathright <669@worldnet.att.net>
Cc: Fred G. Martin <fredm@media.mit.edu>; handyboard@media.mit.edu
Subject: Re: Expansion Board Files
Date: Tuesday, January 26, 1999 4:49 PM

argh!@  my last email (which may arrive before this one) is in reply
to this.

repeating it in the proper context:

  yes, there was a linefeed bug in the expsens.c file in hbexplib.zip.

  it should be fixed now.  please re-download from the expansion board
  asoftware page and try again.

  let us know if this fixes the problem.  thanks a lot.

fred


In your message you said:
This is a multi-part message in MIME format.

------=_NextPart_000_01BE4944.9C4F5080
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Fred;
Here is the copy of expsens,c--------- At the lines in the hb was • having
problems with there was a small square figure at the starting point • outside
the comment*\ and\* for some reason.

Any one else having a problem?????

Thanks Terry



----------
From: Fred G. Martin <fredm@media.mit.edu>
To: Terry P. Gathright <669@worldnet.att.net>
Cc: handyboard@media.mit.edu
Subject: Re: Expansion Board Files
Date: Tuesday, January 26, 1999 6:10 AM

terry --

please send an attached copy of expsens.c.  there's got to be a bogus
character in there.

did anyone else have problems?

fred


In your message you said:
Still unable to load the expansion board files.
lib_hb.lis is in the libs.
How do I do ic _config in windows? do I need to?
System will run fine until I try to load the expansion board files.
I downloaded hbexplib.zip,unziped,put all expansion-libs • inc:\ic\libs.

Synchronizing with board
Pcode version 3.10 present on board
Loading C:\IC\libs\lib_hb.lis.
Loading lib_hb.c.
Loading C:\IC\libs\lib_hb.icb.
Loading C:\IC\libs\libexpbd.icb.
Loading C:\IC\libs\expsens.c.
Loading C:\IC\libs\expservo.icb.
Loading C:\IC\libs\explego.icb.
C:\IC\libs\expsens.c(2): parse error close to token "<illegal>"
Errors, unloading files
Cannot find file lib_hb.lis or file lib_hb.lis
C:\IC\libs\expsens.c(2): parse error close to token "<illegal>"

Thanks to All;
Terry G.
----------
From: Terry P. Gathright <669@worldnet.att.net>
To: handyboard@media.mit.edu
Subject: Expansion Board Files
Date: Sunday, January 24, 1999 9:56 PM

I have not got my expansion board files to load!
what am I not doing correctly?  Help !!

I have deleted all my ic files, reloaded 3.2 from Newton Labs in
c\ic.

In ic I have :

expansion-libs
libs
ic.help
ic.ini
ic.win.exe
install.log

I can load  ic but not any of the expansion files.
I get the message:  parse error close to token  "<illegal>".
I have tried putting some expansion-libs into libs but still
get  the <"illegal>" and unloads.
  After swaping files around so much the board would not load
libs so I deleted all and starting over now.

Please explain the correct procedure to get this bugger up and • running.
The expansion board kit from Douglas Electronics was great • although
instructions would have helped.

Thanks in advance,
Terry Gathright
669@worldnet.att.net

------=_NextPart_000_01BE4944.9C4F5080
Content-Type: application/octet-stream; name="expsens.c"
Content-Transfer-Encoding: 7bit
Content-Description: expsens.c (C File)
Content-Disposition: attachment; filename="expsens.c"

/* expsens.c */
/*
  maintained by Fred Martin (fredm@media.mit.edu)
  VERSION HISTORY

  June 12, 1998 fredm
  first version created
*/
int analog(int port)
{
if (port < 2) {
printf("Port is in use  by expansion bd\n");
beep();
return -1;
} else if (port < 7) {
    return _raw_analog(port);
    } else if (port < 16) {
    return 255 * !digital(port);
    } else if (port < 24) {
    return _exp_analog((port-16)<<8);
    } else if (port < 32) {
    return _exp_analog(((port-24)<<8)+1);
    } else {
    printf("Analog port out of range\n");
    beep();
    return -1;
    }
}
int digital(int port)
{
    if (port < 7) /* analogs */
    return analog(port) < 128;
    if (port == 7) /* TIC1 */
    return !(peek(0x1000) & 1);
    if (port == 8) /* TIC2 */
    return !(peek(0x1000) & 2);
    if (port == 9) /* PAI */
    return !(peek(0x1000) & 128);
    if (port < 16) /* normal bit of 7fff as gotten from digital chip */
      return !((peek(0x7fff) >> (port - 10)) & 1);
    if (port < 32) /* expbd analogs */
      return analog(port) < 128;
    else {
printf("Digital port outof range\n");
beep();
return -1;
    }
}

------=_NextPart_000_01BE4944.9C4F5080--





Message has 1 Reply:
  Re: Expansion Board Files
 
I had similar problems with lib_hb.c. Downloaded it tonight (1800 local time in California, 1 Feb 99). After removing all the "little squares" there were still about 8 or 10 errors. At each error I deleted all white space in the error's location, (...) (26 years ago, 2-Feb-99, to lugnet.robotics.handyboard)

10 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