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 / *2615 (-5)
  NQC functions in C???
 
Hello all I am looking for C code for legos, to do the same as the below in NQC psksvp SetSerialComm(SERIAL...MM_76KHZ); SetSerialPacket(SERI..._DEFAULT); // Set the first unit two message bytes and send them SetSerialData(0,MANA...0x10+em1); (...) (22 years ago, 5-Jun-02, to lugnet.robotics.rcx.legos)
 
  Thread class
 
// Thread Class for Legos // By Pongsak Suvanpong // psksvp@ccs.neu.edu // use it anyway you'd like as long as this comment is here #ifndef __THREAD_CLASS___ #define __THREAD_CLASS___ #include <unistd.h> #include <sys/dsensor.h> #include (...) (22 years ago, 5-Jun-02, to lugnet.robotics.rcx.legos)
 
  Re: bug in setting lnp host address?
 
you'll probably hate me for being a nitpicker.... (...) technically, you should not do any bitshifting at all. There is always the odd case when someone decides to be clever and have a hostmask with interleaved zeros. for example, a hostmask of (...) (22 years ago, 5-Jun-02, to lugnet.robotics.rcx.legos)
 
  Re: bug in setting lnp host address?
 
You are correct in stating that I shouldn't have restricted you to 16 nodes X 16 ports. I did however, want to normalize the host address in the visible API and user interfaces to be a small 0..N number instead of a random hex byte value, properly (...) (22 years ago, 4-Jun-02, to lugnet.robotics.rcx.legos)
 
  bug in setting lnp host address?
 
include/lnp/lnp.h (from the cvs repository) 114: file://! set new LNP host address 115: extern inline void lnp_set_hostaddr(unsigned char host) 116: { 117: lnp_hostaddr = ((host << 4) & CONF_LNP_HOSTMASK); 118: } Why is host bitshifted by 4? This (...) (22 years ago, 4-Jun-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