To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / *2259 (-10)
  Re: Incorrect result
 
(...) Yes, this is what happens when one is used to just making everything long and not considering overflows. Even worse was that I was doing the math on the computer's calculator, but not looking at the intermediate result, just typing in the (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: Incorrect result
 
(...) 256 * 128 = 32768, one higher as the biggest positive integer value. The cast to long would help, but your cast is too late. I have not tested, but I think rc += ( (long)b->magnitude * (long)TA_costable[...] ) >> 7; will help. Try output in (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  RE: Incorrect result
 
<snipped code> (...) Robert, this is a classic problem with ranges of singed numbers in C rx = (long)(a->magnitude * TA_costable[a->direction]) >> 7; I don't have an RCX in frot of me, but I think you need to cast a->magnitude to long before the (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Incorrect result
 
This problem, unlike the other, is definitely not a result of my eyes/brain being tired or something. I thoroughly displayed every value before and after evaluation and the result is ***WRONG***. Here is the code and the values: typedef struct { int (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  RE: true tcp/ip on the RCX
 
Hi :) Just out of curiosity, check this thread from Jan/2000: (URL) mc. (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: true tcp/ip on the RCX
 
(...) <snip> (...) <snip> Yeah, I've got a server farm of 3 million RCXs. Each hosts errrrr... 1 page. ;-) Great job Olaf! Steve Martin IndyLUG (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: true tcp/ip on the RCX
 
"Olaf" <christ_o@gmx.de> schrieb im Newsbeitrag news:Gqo0BH.E9t@lugnet.com... (...) calls (...) <---snip----> Hi Olaf, i think it´s the wrong way to blow up the legOS kernel with a ip-stack, because you lost valuable RCX memory to legOS (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: true tcp/ip on the RCX
 
<Mr Burn's> Excellent!!! I've seen some neat ideas but, this one takes the cake hands down.... Especially that it also appeared on www.slashdot.org makes it even more impressive.. Bravo to you.. Can't wait to see the webpage.. Wayne (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: true tcp/ip on the RCX
 
I will be axiously awaiting the web page too! This has many fun/useless possibilities! Email it to me or post it on this thread if you can. thanks nate www.nullgel.com (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: true tcp/ip on the RCX
 
plz email me the url when u get it running thx -p (...) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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