Libraries/NXTLib2/Brick.cs
/// <summary>
/// <para>Initializes all the sensors of the brick.</para>
/// <remarks>Normally this is done as part of the Connect() method, and is not something you need to worry about. However, whenever a program is started on the brick e.g. the MotorControl-program, you will need to call this method to re-initialize the sensors.</remarks>
/// </summary>
Initializes all the sensors of the brick.Normally this is done as part of the Connect() method, and is not something you need to worry about. However, whenever a program is started on the brick e.g. the MotorControl-program, you will need to call this method to re-initialize the sensors.
Initializes all the sensors of the brick . Normally this is done as part of the Connect () method and is not something you need to worry about . However whenever a program is started on the brick e . g . the MotorControl - program you will need to call this method to re - initialize the sensors .
public void InitSensors()
        {
            foreach (Sensor sensor in sensorArr.Values)
            {
                sensor.InitSensor();
            }
        }
public void InitSensors ( ) { foreach ( Sensor sensor in sensorArr . Values ) { sensor . InitSensor ( ) ; } }
Initializes all the sensors of the brick.Normally this is done as part of the Connect() method, and is not something you need to worry about.
Initializes all the sensors of the brick . Normally this is done as part of the Connect () method and is not something you need to worry about .