jp.digitalmuseum.mr.entity
クラス Noopy2.ServoMotorController

java.lang.Object
  上位を拡張 jp.digitalmuseum.mr.entity.ResourceAbstractImpl
      上位を拡張 jp.digitalmuseum.mr.entity.PhysicalResourceAbstractImpl
          上位を拡張 jp.digitalmuseum.mr.entity.Noopy2.NoopyExtension
              上位を拡張 jp.digitalmuseum.mr.entity.Noopy2.ServoMotorController
すべての実装されたインタフェース:
java.io.Serializable, ExclusiveResource, Resource
含まれているクラス:
Noopy2

public static class Noopy2.ServoMotorController
extends Noopy2.NoopyExtension
implements ExclusiveResource
関連項目:
直列化された形式

コンストラクタの概要
Noopy2.ServoMotorController(Noopy2 noopy, Noopy2.Port port)
           
 
メソッドの概要
 void drive(int angle)
           
 int getAngle()
           
 int getSpeed()
           
protected  void onFree()
          Called when disposing this resource.
Caution: This method should not be called outside this class.
 void setSpeed(int speed)
           
 void stop()
           
 
クラス jp.digitalmuseum.mr.entity.Noopy2.NoopyExtension から継承されたメソッド
getPort, getPortNumber, getPortType, getRobot
 
クラス jp.digitalmuseum.mr.entity.PhysicalResourceAbstractImpl から継承されたメソッド
getConnector, setConnector
 
クラス jp.digitalmuseum.mr.entity.ResourceAbstractImpl から継承されたメソッド
getConfigurationComponent, getReaders, getWriter, isWritable, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース jp.digitalmuseum.mr.entity.ExclusiveResource から継承されたメソッド
getWriter, isWritable
 
インタフェース jp.digitalmuseum.mr.entity.Resource から継承されたメソッド
getConfigurationComponent, getReaders, getRobot
 
コンストラクタの詳細

Noopy2.ServoMotorController

public Noopy2.ServoMotorController(Noopy2 noopy,
                                   Noopy2.Port port)
メソッドの詳細

onFree

protected void onFree()
クラス ResourceAbstractImpl の記述:
Called when disposing this resource.
Caution: This method should not be called outside this class.
オーバーライド:
クラス ResourceAbstractImpl 内の onFree
関連項目:
ResourceAbstractImpl.free(Object)

drive

public void drive(int angle)

getAngle

public int getAngle()
戻り値:
0-360 (-1 when error occurred.)

stop

public void stop()

setSpeed

public void setSpeed(int speed)
パラメータ:
speed - Speed (0-255)

getSpeed

public int getSpeed()


Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/