@mparadis: Thank you for your answer. I think I managed it. But now I have another question. With my application I can count the ticks of the motor. But when I restart the application the tick counter is set to 0. So If I have e.g. a car and the steering wheel is turned 10 degrees to the left I have...
Thank you for your answer. I tried to implement the example in my JAVA project but I could not manage it. I think the mentioned example is not complete because I can´t see the usage of different variables (e.g. feedbacklast) or the implementation of the method distance360(input,feedback). To set the...
Hi. I have the DC Gear Motor 24V/5.1Kg-cm/588RPM 4.25:1 DC Gear Motor (version 3269_3) and the encoder HKT22. Now I want to create a Java application to rotate the motor by given degrees. The user can enter e.g. 60 degrees or e.g. -60 degrees. I create my own example code and the motor is rotating f...