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 / 7213
7212  |  7214
Subject: 
Re: error message
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 14 Dec 1999 11:04:12 GMT
Viewed: 
3670 times
  
Kah Mun,

sorry, IC does not support the 'switch' construct.

re-write using if-thens.

fred

In your message you said:
> 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 i • t
> 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 is in Reply To:
  error message
 
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 (...) (27 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
    

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