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 (); }
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 (); }
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 (); }
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; }
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(); }
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(); }
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(); }
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; }
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(); }
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 (); }
public MSSensorMUXBase (SensorPort Port, MSSensorMUXPort Address) : base (Port, (byte)Address, I2CMode.LowSpeed) { base.Initialise (); SetSensorMode (); NumberOfM = 2; }
public MSSensorMUXBase(SensorPort Port, MSSensorMUXPort Address) : base(Port, (byte)Address, I2CMode.LowSpeed) { base.Initialise(); SetSensorMode(); NumberOfM = 2; }