My initial thought is that it isn't pointing perfectly straight when you start? Mine will do that if I am not careful lining it up. My second thought is these are fairly inexpensive sets so they are very good, but they won't always be perfect. Zachary Trautwein has an awesome channel, he talks about using the wall to set the robot.
@@gibfordsrobotlab I agree with this statement entirely. If you need to start the robot off of the wall, just use a jig acting in place of a wall, but alignment is key
This is really a great code and really awesome video but I wanted to ask you, is there any way to run the gyro straight code with another condition than the timer? Because sometimes the timer change with me when I turn off and on my robot. So is there any possible way to change the condition in the loop to something else like for example rotations? Thank you
Yes, you can do it with rotations, at the time I made the video I didn't know how, but it's pretty easy. Maybe I will make a video one day. You can count and reset motor rotation I believe in the extra motors.
I gained experience thanks to this video, but I have a problem, The robot was veering off the black road in the play mat despite our gyro use, But it worked the first time we used it, and we used color following and it worked, but another time it didn't work, can u help me to solve my problem?? I'm afraid the day after tomorrow I'm going to a contest i hope that you can reply to me 🥺
Awesome tutorial. The delay that you have put in, is that for calibrating the gyro? I am using an EV3 with scratch and I am having trouble with negotiating turns since the angle reset doesnt seem to work. Not sure if you tried this program on EV3?
Yes, we are still using EV3s in class and use this code. The EV3 gyro is much more finicky, so that delay is critical for the EV3 to have time to reset.
I haven't every really tried to use the gyro to go backwards, I usually just run the robot in reverse 2 or 3 rotations. You can try running to motors in reverse, you may have to switch which one is receiving more power. I will try that out some day.
@Builderdude35 made a great video called FLL Robot Odometry where he shows precisely how to do this. I didn't realize it could be done until I saw his video.
Thank you SO much for this tutorial! My 5th graders took these principals and was able to make the robot go down the hallway, into two classrooms and across a finish line. I challenged them to then make a u-turn and go back to the starting line. Here’s where we’ve run into issues… when we set the 30 speed turn loop to greater than 176 and then exiting the loop, setting the Target Yaw to 180, it does its initial turn, stops, then starts to go straight, but then spins 360, goes straight, spins 360 again, straight, you get the point, until our timer runs out. Any ideas?
Yes, because the gyro starts to count backwards at 180 back to 0. you would need to have the robot set up someplace and reset the yaw to complete the turn.
@@gibfordsrobotlab - thank you SO much for your reply! That’s perfect, I think we’ll have it pivot 180, reset yaw to 0 and then run our “go straight” loop like in your video. Thank you again!
Thank you very much for this helpfull video!
Thank you
This is Epic!
Thankyou very much
do a video with rotations
it would help my team alot
Can you use the "if condition" block?
how do we do -180 gyro straight?
Great tutorial. Thanks. I still see my robot drift a little on straight line. Any tips?
My initial thought is that it isn't pointing perfectly straight when you start? Mine will do that if I am not careful lining it up. My second thought is these are fairly inexpensive sets so they are very good, but they won't always be perfect. Zachary Trautwein has an awesome channel, he talks about using the wall to set the robot.
@@gibfordsrobotlab I agree with this statement entirely. If you need to start the robot off of the wall, just use a jig acting in place of a wall, but alignment is key
This is really a great code and really awesome video but I wanted to ask you, is there any way to run the gyro straight code with another condition than the timer? Because sometimes the timer change with me when I turn off and on my robot.
So is there any possible way to change the condition in the loop to something else like for example rotations?
Thank you
Yes, you can do it with rotations, at the time I made the video I didn't know how, but it's pretty easy. Maybe I will make a video one day. You can count and reset motor rotation I believe in the extra motors.
can you help me coding it by EV3 Classroom programming? Because I don't see code "start moving at.... %power in that programing.
I also have this problem - after adding additional motor blocks I only have start moving () () %speed, not %power. Does anyone know why?
How might you make the robot approach a 180 degree turn? I appreciate two 90's or a reverse might accomplish the same general goal.
I gained experience thanks to this video, but I have a problem, The robot was veering off the black road in the play mat despite our gyro use, But it worked the first time we used it, and we used color following and it worked, but another time it didn't work, can u help me to solve my problem?? I'm afraid the day after tomorrow I'm going to a contest i hope that you can reply to me 🥺
Awesome tutorial. The delay that you have put in, is that for calibrating the gyro? I am using an EV3 with scratch and I am having trouble with negotiating turns since the angle reset doesnt seem to work. Not sure if you tried this program on EV3?
Yes, we are still using EV3s in class and use this code. The EV3 gyro is much more finicky, so that delay is critical for the EV3 to have time to reset.
How do you get the robot to go backwards with gyro drive program?
I haven't every really tried to use the gyro to go backwards, I usually just run the robot in reverse 2 or 3 rotations. You can try running to motors in reverse, you may have to switch which one is receiving more power. I will try that out some day.
How do you make this work to follow 180? I noticed that the yaw angle flips to -179 after 180, rather than 181, which messes up the calculation...
Right now, the only solution I have is to put the robot square into a wall and reset the yaw angle.
This is great but I cannot work out how to move the robot a specific distance in CM and not seconds.
Can you help please?
I've just worked it out. :)
@Builderdude35 made a great video called FLL Robot Odometry where he shows precisely how to do this. I didn't realize it could be done until I saw his video.
@@gibfordsrobotlab Thank you I’ll take a look.
Thank you SO much for this tutorial! My 5th graders took these principals and was able to make the robot go down the hallway, into two classrooms and across a finish line. I challenged them to then make a u-turn and go back to the starting line. Here’s where we’ve run into issues… when we set the 30 speed turn loop to greater than 176 and then exiting the loop, setting the Target Yaw to 180, it does its initial turn, stops, then starts to go straight, but then spins 360, goes straight, spins 360 again, straight, you get the point, until our timer runs out. Any ideas?
Yes, because the gyro starts to count backwards at 180 back to 0. you would need to have the robot set up someplace and reset the yaw to complete the turn.
@@gibfordsrobotlab - thank you SO much for your reply! That’s perfect, I think we’ll have it pivot 180, reset yaw to 0 and then run our “go straight” loop like in your video. Thank you again!
Could you show us this in Python?
I have not attempted to learn any python yet.