I've been working on a model, which uses a Mindsensors TouchMUX. However it seems to behave a bit strange, which can be detected in the following test:
Code: Select all
TouchMUX Mux = new TouchMUX(SensorPort.S3);
boolean T1_Pressed, T2_Pressed, T3_Pressed;
T1_Pressed = Mux.T1.isPressed();
T2_Pressed = Mux.T2.isPressed();
T3_Pressed = Mux.T3.isPressed();
LCD.drawString("T1: "+T1_Pressed+" ", 0, 1);
LCD.drawString("T2: "+T2_Pressed+" ", 0, 2);
LCD.drawString("T3: "+T3_Pressed+" ", 0, 3);
If you rapidly press T2 and T3 buttons, as a stress-test, T1 is registered as Pressed and the NXT beeps, even though you only pressed the two other buttons.
I have tried with two different TouchMux's and the problem occurs in both.
I would like to know if this is fixable, or if it is normal behaviour for the TouchMux?
Also, I can see in the code for TouchMux, that there is a lot of limit-values and I was wondering if these values can be specific/varying for each TouchMux sensor? In that case, how can I easily make a calibration program?