Forum Replies Created
-
AuthorPosts
-

Daniel Fernández PérezParticipantThanks for your answer Anders
You are doing a great job with this project, of course we hope to see it grow and evolve but we can wait 😉
Thanks!

Daniel Fernández PérezParticipantI answer myself, in the documentation Library () I have just discover that the Touch Sensor Class is no longer used with “var touchSensor = new EV3TouchSensor(SensorPort.In1);” but using the following statement: “var touchSensor = new TouchSensor(SensorPort.In1);”. This new declaration is valid for NXT and EV3 touch sensors, no difference has to be made.
So the Example used before is no longer valid and declaration of touch sensor has to be changed in order to compile with the last MonoBrick DLL.
Hope it helps

Daniel Fernández PérezParticipantYes, I added the monobrick DLL, in fact, I have redownloaded and reincluded it into the project (just in case), the problematic line is exactly the line where the declaration of the sensor is made:
“var touchSensor = new EV3TouchSensor(SensorPort.In1);” yI have also tried with a NXT Sound Sensor and with the NXT declaration: “svar touchSensor = new NXTTouchSensor(SensorPort.In1);” with the same result, the error (translated from spanish): “type or name space cannot be found, maybe you have missed some “using” declaration o assembler reference” (this is a free translation of the error)
But this program is the original SoundSensor Example, unmodified. Do I have an old dll? I have downloaded from the official link.
Thanks
-
AuthorPosts

Follow