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 / 7212
7211  |  7213
Subject: 
error message
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 14 Dec 1999 06:20:41 GMT
Viewed: 
611 times
  
Whenever I run this simple program below, i get the following error message:
"Fatal Internal Error: Illegal size to spew_peek_op(read local)". What does it
mean?? Please help..


void servo(char balloon)
{     const float left_b=400.0;
      const float right_b=4840.0;
      const float center=2530.0;
      float t;

      switch (balloon)
           {
            case 'L':   t=left_b+right_b;
                        printf("Total=%f\n", t );
                        break;

            case 'R':  t=left_b+center;
                       printf("Total=%f\n", t );
                       break;

            case 'B':  t=right_b+right_b;
                   printf("Total=%f\n", t );
                       break;
         }
}  /* end of program */



Message has 1 Reply:
  Re: error message
 
Kah Mun, sorry, IC does not support the 'switch' construct. re-write using if-thens. fred In your message you said: (...) t (...) (25 years ago, 14-Dec-99, to lugnet.robotics.handyboard)

2 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