예제 #1
0
		public MSSensorMUXBase (SensorPort Port, MSSensorMUXPort Address, MSSensorMUXMode SensorMode) : base (Port, (byte)Address, I2CMode.LowSpeed)
		{
			base.Initialise ();
			Mode = (byte)SensorMode;
			if (SensorMode != MSSensorMUXMode.TouchMode)
				NumberOfM = 3;
			else
				NumberOfM = 1;
			SetSensorMode ();
		}
예제 #2
0
		public MSSensorMUXBase (SensorPort Port, MSSensorMUXPort Address, GyroMode SensorMode) : base (Port, (byte)Address, I2CMode.LowSpeed)
		{
			base.Initialise ();
			if (SensorMode == GyroMode.Angle)
				Mode = 0;
			else if (SensorMode == GyroMode.AngularVelocity)
				Mode = 1;

			NumberOfM = 1;
			SetSensorMode ();
		}
예제 #3
0
		public MSSensorMUXBase (SensorPort Port, MSSensorMUXPort Address, ColorMode SensorMode) : base (Port, (byte)Address, I2CMode.LowSpeed)
		{
			base.Initialise ();
			if (SensorMode == ColorMode.Reflection)
				Mode = 0;
			else if (SensorMode == ColorMode.Ambient)
				Mode = 1;
			else if (SensorMode == ColorMode.Color)
				Mode = 2;

			NumberOfM = 2;
			SetSensorMode ();
		}
예제 #4
0
		public MSSensorMUXBase (SensorPort Port, MSSensorMUXPort Address, UltraSonicMode SensorMode) : base (Port, (byte)Address, I2CMode.LowSpeed)
		{
			base.Initialise ();
			if (SensorMode == UltraSonicMode.Centimeter)
				Mode = 0;
			else if (SensorMode == UltraSonicMode.Inch)
				Mode = 1;
			else if (SensorMode == UltraSonicMode.Listen)
				Mode = 2;

			SetSensorMode ();
			NumberOfM = 2;
		}
예제 #5
0
 public MSSensorMUXBase(SensorPort Port, MSSensorMUXPort Address, MSSensorMUXMode SensorMode) : base(Port, (byte)Address, I2CMode.LowSpeed)
 {
     base.Initialise();
     Mode = (byte)SensorMode;
     if (SensorMode != MSSensorMUXMode.TouchMode)
     {
         NumberOfM = 3;
     }
     else
     {
         NumberOfM = 1;
     }
     SetSensorMode();
 }
예제 #6
0
        public MSSensorMUXBase(SensorPort Port, MSSensorMUXPort Address, GyroMode SensorMode) : base(Port, (byte)Address, I2CMode.LowSpeed)
        {
            base.Initialise();
            if (SensorMode == GyroMode.Angle)
            {
                Mode = 0;
            }
            else if (SensorMode == GyroMode.AngularVelocity)
            {
                Mode = 1;
            }

            NumberOfM = 1;
            SetSensorMode();
        }
예제 #7
0
        public MSSensorMUXBase(SensorPort Port, MSSensorMUXPort Address, ColorMode SensorMode) : base(Port, (byte)Address, I2CMode.LowSpeed)
        {
            base.Initialise();
            if (SensorMode == ColorMode.Reflection)
            {
                Mode = 0;
            }
            else if (SensorMode == ColorMode.Ambient)
            {
                Mode = 1;
            }
            else if (SensorMode == ColorMode.Color)
            {
                Mode = 2;
            }

            NumberOfM = 2;
            SetSensorMode();
        }
예제 #8
0
        public MSSensorMUXBase(SensorPort Port, MSSensorMUXPort Address, UltraSonicMode SensorMode) : base(Port, (byte)Address, I2CMode.LowSpeed)
        {
            base.Initialise();
            if (SensorMode == UltraSonicMode.Centimeter)
            {
                Mode = 0;
            }
            else if (SensorMode == UltraSonicMode.Inch)
            {
                Mode = 1;
            }
            else if (SensorMode == UltraSonicMode.Listen)
            {
                Mode = 2;
            }

            SetSensorMode();
            NumberOfM = 2;
        }
예제 #9
0
        public MSSensorMUXBase(SensorPort Port, MSSensorMUXPort Address, IRMode SensorMode) : base(Port, (byte)Address, I2CMode.LowSpeed)
        {
            base.Initialise();
            if (SensorMode == IRMode.Proximity)
            {
                Mode = 0;
            }
            else if (SensorMode == IRMode.Seek)
            {
                Mode = 1;
            }
            else if (SensorMode == IRMode.Remote)
            {
                Mode = 2;
            }

            NumberOfM = 2;
            SetSensorMode();
        }
예제 #10
0
		public MSSensorMUXBase (SensorPort Port, MSSensorMUXPort Address, IRMode SensorMode) : base (Port, (byte)Address, I2CMode.LowSpeed)
		{
			base.Initialise ();
			if (SensorMode == IRMode.Proximity)
				Mode = 0;
			else if (SensorMode == IRMode.Seek)
				Mode = 1;
			else if (SensorMode == IRMode.Remote)
				Mode = 2;

			NumberOfM = 2;
			SetSensorMode ();
		}
예제 #11
0
		public MSSensorMUXBase (SensorPort Port, MSSensorMUXPort Address) : base (Port, (byte)Address, I2CMode.LowSpeed)
		{
			base.Initialise ();
			SetSensorMode ();
			NumberOfM = 2;
		}
예제 #12
0
 public MSSensorMUXBase(SensorPort Port, MSSensorMUXPort Address) : base(Port, (byte)Address, I2CMode.LowSpeed)
 {
     base.Initialise();
     SetSensorMode();
     NumberOfM = 2;
 }