public bool ClearSensor( Sensor sensor, bool waitReply ) { byte[] command = new byte[3]; // prepare message command[0] = (byte) ( ( waitReply ) ? NXTCommandType.DirectCommand : NXTCommandType.DirectCommandWithoutReply ); command[1] = (byte) NXTDirectCommand.ResetInputScaledValue; command[2] = (byte) sensor; return SendCommand( command, new byte[3] ); }