SetTxPower in lejos

This is where you talk about the RCX software itself, installation issues, and programming talk.

Moderator: roger

SetTxPower in lejos

Postby deshan » Mon Jul 27, 2009 6:34 am

Hi all
what is the lejos implementation of SetTxPower in NQC? I searched the topic but didn't manage to find any.
And what is the maximum communication distance between rcx and tower? Does it differ from nqc to lejos?

Thanx
deshan
New User
 
Posts: 3
Joined: Fri Apr 10, 2009 4:41 pm
Location: SriLanka

Postby bnl » Mon Jul 27, 2009 11:48 am

The Serial class
The basic class for communication between the RCX to the tower or another RCX is josx.rcx.platform.Serial.
As usual with hardware related leJOS classes, Serial is static; hence a typical call would be


Serial.setRangLong();


There are two methods available to configure the Serial class for the actual needs:

* public static void setRangeLong()
* public static void setRangeShort()


recommended reading is the docs in the install dir.
quoute above is from
file:///home/bnl/programming/legodocs/tutorial/essential/hardware/ir.html


and
file:///home/bnl/programming/legodocs/tutorial/essential/hardware/index.html

is very helpful

correct your paths of course

/Björn
bnl
New User
 
Posts: 7
Joined: Sun Mar 29, 2009 6:55 pm
Location: Sweden


Return to RCX Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff