Proportional Control Turning with spike prime
HTML-код
- Опубликовано: 24 июл 2024
- In this video I will show how to create a program in Spike prime classroom that allows you to turn a robot to a given angle using the built in gyro sensor, and a proportional controller.
Хобби
Nice concept, code, and results.
Really good information, thank you!
I have a bit of a problem getting the robot read error = 0. It helped me to replace it with “ is error in between -1 and 1 ?
Besides my gyro turns a bit more than 90 degrees every time. 🤷♂️
If you have it turn too fast it will keep wobbling and never read error = 0. Try reducing its minimum speed and reducing the p - constant while still having read error = 0, that way it should get closer to 90 degrees.
Thank you . Can you help me i want know how match rotation of motors i need to mouve my robot in destination
To move to what destination?
Hey dude: you most clever and genius engineer in the world but you selected program looks like scratch program i thing you are like scratch program
can you do more spike prime videos?
Yea, specifically for what?
@@AaedMusa breaking down what the block do? I have not found anyone on RUclips who actually walks through the spike prime activity's. Like training camp, advanced driving base. I guess the basics
@@bayarearob Interesting. Yea I can try an get videos like that out. Maybe next week. Did you have any specific questions that I could answer?
@@AaedMusa cool! I will check out the app send you some. Thank you! We are working on a line follower map in school and my robot won't turn where it should. Maybe I could send you a screenshot of my code and a pic of the map
@@bayarearob Yea sure. My email is printedgadgets@gmail.com if it’s easier to send.
The code seems to be breaking for any absolute values over 179 degrees
He said its not supposed to go over 179 as the gyro only measures until 180 and if you go over the gyro will create issues