Hey, I am trying to code my motor to rotate 45 degrees one way, stop, then rotate 90 degrees the other way and 90 degrees the other way and loop so I get a rocking back and forwards motion, thought this would be easy to do, but I am find so many problems!
Firstly its not simple to get the engine to go back to 0 position, so at the moment I am doing this manually before I start the sequence. Then I seem to have problems with the positioning never being precise over time it ends up not going back to the center and can be over 90 degrees out after a few minutes! Also within my code (which is probably wrong) it seems to juts decide to jump past come commands without any reason.
Attached the method that I ended up with that still didnt work (Sorry I accidentally downloaded the latest version of Powered Up app!!!)
Currently I am looking at building the motion mechanically with techic lego bits rather than motor motion, any tips on a good build would also be appreciated.
Thanks
Liam