Deprecated API


Contents
Deprecated Classes
lejos.robotics.navigation.CompassPilot
          This class will disappear in NXJ version 1.0. Compass should be added to a PoseProvider. 
lejos.pc.tools.Console
          use lejos.pc.tools.NXJConsole instead 
lejos.pc.tools.ConsoleViewer
          use lejos.pc.tools.NXJLink instead 
lejos.pc.tools.DataViewer
          use lejos.pc.tools.NXJLink instead 
lejos.robotics.navigation.LegacyNavigator
          This class will disappear in NXJ version 1.0. Use a PathController instead. 
lejos.robotics.navigation.LegacyPilot
          This class will disappear in NXJ version 1.0. Use an implementing class of MoveController instead. 
lejos.pc.tools.SocketProxy
          use lejos.pc.tools.NXJLink instead 
lejos.pc.comm.SystemContext
          will be replaced 
js.tinyvm.TinyVM
          use lejos.pc.tools.NXJLink instead 
 

Deprecated Methods
lejos.nxt.addon.RCXLightSensor.activate()
          Use RCXLightSensor.setFloodlight(boolean) with true instead 
lejos.nxt.remote.NXTCommand.close()
          call disconnect, then close the underlying NXTComm 
lejos.robotics.navigation.ArcAlgorithms.getArcOld(Point, Point, double)
          This method is no longer used because it can't calculate >180 angles. Delete any time. 
lejos.nxt.remote.RemoteMotor.getBlockTacho()
            
lejos.robotics.navigation.LegacyPilot.getMoveMaxSpeed()
           
lejos.robotics.navigation.LegacyPilot.getMoveSpeed()
           
lejos.nxt.remote.RemoteMotor.getRotationCount()
            
lejos.nxt.addon.NXTLineLeader.getSensorStatus(int)
            
lejos.robotics.navigation.LegacyPilot.getTurnSpeed()
           
js.tinyvm.util.HashVector.insertElementAt(T, int)
          method is to be removed since it messes up indices 
lejos.nxt.Button.isPressed()
          use Button.isDown() instead 
lejos.nxt.addon.RCXLightSensor.passivate()
          Use RCXLightSensor.setFloodlight(boolean) with false instead 
js.tinyvm.util.HashVector.put(T, Object)
          method is to be removed since it doesn't seem to fit into the concept since there is no get method 
lejos.nxt.addon.RCXLightSensor.readValue()
          Use RCXLightSensor.getLightValue() instead 
lejos.nxt.remote.RemoteMotor.resetBlockTacho()
            
lejos.nxt.addon.NXTLineLeader.sendCommand(char)
          use NXTLineLeader.sendCommand(Command) instead 
lejos.nxt.I2CSensor.setAddress(int)
          If the device has a changeable address, then constructor of the class should have an address parameter. If not, please report a bug. 
lejos.robotics.navigation.LegacyPilot.setMoveSpeed(float)
           
lejos.robotics.navigation.OmniPilot.setSpeed(int)
          in 0.8, use setRotateSpeed() and setTravelSpeed(). The method was deprecated, as this it requires knowledge of the robots physical construction, which this interface should hide! 
lejos.robotics.navigation.LegacyPilot.setSpeed(int)
          in 0.8, use setRotateSpeed() and setTravelSpeed(). The method was deprecated, as this it requires knowledge of the robots physical construction, which this interface should hide! 
lejos.robotics.navigation.LegacyPilot.setTurnSpeed(float)
           
 

Deprecated Constructors
lejos.robotics.navigation.LegacyNavigator(float, float, RegulatedMotor, RegulatedMotor)
          The correct way is to create the Pilot in advance and to use that in construction of the LegacyNavigator. Otherwise the LegacyNavigator needs to know detail it should not care about! 
lejos.robotics.navigation.LegacyNavigator(float, float, RegulatedMotor, RegulatedMotor, boolean)
          The correct way is to create the Pilot in advance and to use that in construction of the LegacyNavigator. Otherwise the LegacyNavigator needs to know detail it should not care about!