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 / *6935 (-10)
  Re: IC trouble - function definition
 
(...) whoa! Local function definitions. Even GCC doesn't grok that. Try extracting the function definition phony() from start() like so: long time; void phony() { while (digital(2) == 1) { time = mseconds(); } } void start() { phony(); } -d (...) (25 years ago, 13-Nov-99, to lugnet.robotics.handyboard)
 
  Re: IC trouble - function definition
 
[John Bachman] spake unto the ether: (...) You have the definition of phony() nested inside the definition of start(). I don't know what ANSI C and/or C++ let you do, but this is invalid IC. You need something like: long time; void start() { (...) (25 years ago, 13-Nov-99, to lugnet.robotics.handyboard)
 
  Re: IC trouble - function definition
 
Thanks for all the helpful device but the darned thing still does not work. I have created a simplified program to try to figure out what I am doing wrong. Here it is: /* A simplified program to figure out what is wrong */ long time; void start() { (...) (25 years ago, 13-Nov-99, to lugnet.robotics.handyboard)
 
  Re: IC trouble - function definition
 
John: If your function does not need a parameter passed to it just do: void detect_time2() { /* code here */ } just like int main() { /* code here */ } Bart. ___...___ Reply Separator ___...___ Subject: IC trouble - function definition Author: (...) (25 years ago, 12-Nov-99, to lugnet.robotics.handyboard)
 
  Re: IC trouble - function definition
 
John: Try it like this----- void detect_time_2() {same code here;} IC is a lot like ANSI C, but there are some differences. Good luck, Gary Livick (...) (25 years ago, 12-Nov-99, to lugnet.robotics.handyboard)
 
  IC trouble - function definition
 
I am having trouble with function definitions. Can someone tell me what is wrong with this: void detect_time_2 (void) { code here;} I get a syntax error on the definition line and cannot figure out why. TIA John (25 years ago, 12-Nov-99, to lugnet.robotics.handyboard)
 
  RE: pneumatics and compressed air cartridges
 
check (URL) Look under spare parts for Pneumatic products Kalyan -----Original Message----- From: Chen Yung Hsu [mailto:hsu3@cooper.edu] Sent: Thursday, November 11, 1999 4:23 PM To: handyboard@media.mit.edu Subject: Re: pneumatics and compressed (...) (25 years ago, 12-Nov-99, to lugnet.robotics.handyboard)
 
  Re: pneumatics and compressed air cartridges
 
You may find some help by joining the legged robot email list. There have been several discussions on this topic. Send an email to: legged-robots-subscr...groups.com and it will send you information and instructions to join. Then simply send your (...) (25 years ago, 12-Nov-99, to lugnet.robotics.handyboard)
 
  Re: pneumatics and compressed air cartridges
 
Chen, I just received catalogs from Clippard Minimatic Co. Looks like just what you are looking for. http//www.clippard.com bye Terry -----Original Message----- From: Chen Yung Hsu <hsu3@cooper.edu> To: handyboard@media.mit.edu (...) (25 years ago, 12-Nov-99, to lugnet.robotics.handyboard)
 
  Robot for sale
 
I have a General Robotics RB5X I'd like to sale for $1000, it was just refurbished by General Robotics a year ago at a costs of $1200. I know this doesn't have anything to do with Hand Boards but I thought maybe someone from the mailing list would (...) (25 years ago, 12-Nov-99, to lugnet.robotics.handyboard)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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