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 / 832
831  |  833
Subject: 
How about LegOS & IR "long range"?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 13 Feb 2000 23:27:01 GMT
Viewed: 
1654 times
  
Well.

It's a bit strange that under LegOS you "must" work only in "near"/"short
range" mode. So I've modified my kernel to work always in "far" or "long
range" mode (that works with near too)...

Now I'm able to upload kernel and .lx to my RCX placed far away from IR
Tower... I like it... :-)

Here are the patch to lnp-logical.c. In the function lnp_logical_init(),
insert the lines with a "+" before, just in the middle of other lines as
indicated:

--- cut
  PORT5_DDR = *(char *)0xfd84 = 4;       // init p5ddr, for now

+  // IR Range
+  lnp_logical_range(1);

  // IRQ handler setup
--- cut

That's all.

Enjoy! :-)

Bye,
     Paolo.

P.S.: Do not forget the new dll.exe also patched by John Lorenz, It's a
must... Same patches I was working to... :-)

---
"Only two things are infinite, the universe and human stupidity, and
I'm not sure about the former." - Albert Einstein



1 Message 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