Exemplo n.º 1
0
        public Motor(INxtBrick nxtBrick, NxtBrick.Motor motor)
        {
            Brick = nxtBrick;
            MotorPort = motor;

            RegulationMode = NxtBrick.MotorRegulationMode.Idle;
        }
Exemplo n.º 2
0
        public Motor(INxtBrick nxtBrick, NxtBrick.Motor motor)
        {
            Brick     = nxtBrick;
            MotorPort = motor;

            RegulationMode = NxtBrick.MotorRegulationMode.Idle;
        }
Exemplo n.º 3
0
        public PollingSensor(INxtBrick nxtBrick, NxtBrick.Sensor sensor)
        {
            Brick  = nxtBrick;
            Sensor = sensor;

            TimeResolution            = DefaultTimeResolution;
            ValueResolutionPercentage = DefaultValueResolution;
        }
Exemplo n.º 4
0
 public UltrasonicSensor(INxtBrick nxtBrick, NxtBrick.Sensor sensor)
     : base(nxtBrick, sensor)
 {
     ValueResolutionPercentage = 1;
 }
Exemplo n.º 5
0
 public TouchSensor(INxtBrick nxtBrick, NxtBrick.Sensor sensor)
     : base(nxtBrick, sensor)
 {
 }
Exemplo n.º 6
0
 public SoundDbaRatioSensor(INxtBrick nxtBrick, NxtBrick.Sensor sensor)
     : base(nxtBrick, sensor)
 {
     TimeResolution = TimeSpan.FromMilliseconds(300);
 }
Exemplo n.º 7
0
 public SoundSensor(INxtBrick nxtBrick, NxtBrick.Sensor sensor)
     : base(nxtBrick, sensor)
 {
 }
Exemplo n.º 8
0
 public LightSensor(INxtBrick nxtBrick, NxtBrick.Sensor sensor)
     : base(nxtBrick, sensor)
 {
 }