Spike Prime Proportional Programs Part 2: Gyro Straight any angle

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 31

  • @Barchewitz
    @Barchewitz 3 роки тому +2

    Thank you very much for this helpfull video!

  • @priyanka2309
    @priyanka2309 3 роки тому +1

    Thank you

  • @mikey4590
    @mikey4590 3 роки тому +1

    This is Epic!

  • @Randomperson0467
    @Randomperson0467 Рік тому

    do a video with rotations
    it would help my team alot

  • @MrAnandbajaj
    @MrAnandbajaj Рік тому

    Can you use the "if condition" block?

  • @vishu0705
    @vishu0705 Рік тому

    how do we do -180 gyro straight?

  • @Archanakeswani
    @Archanakeswani 3 роки тому +2

    Great tutorial. Thanks. I still see my robot drift a little on straight line. Any tips?

    • @gibfordsrobotlab
      @gibfordsrobotlab  3 роки тому +1

      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.

    • @connerroth3416
      @connerroth3416 2 роки тому

      @@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

  • @kalid20106
    @kalid20106 2 роки тому +2

    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

    • @gibfordsrobotlab
      @gibfordsrobotlab  2 роки тому

      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.

  • @11vatly6
    @11vatly6 Рік тому

    can you help me coding it by EV3 Classroom programming? Because I don't see code "start moving at.... %power in that programing.

    • @mattwilliams1326
      @mattwilliams1326 Рік тому

      I also have this problem - after adding additional motor blocks I only have start moving () () %speed, not %power. Does anyone know why?

  • @camillaevans1589
    @camillaevans1589 2 роки тому

    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.

  • @emanosama5517
    @emanosama5517 7 місяців тому

    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 🥺

  • @nkhad
    @nkhad 3 роки тому +1

    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?

    • @gibfordsrobotlab
      @gibfordsrobotlab  2 роки тому

      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.

  • @kylegerhard1264
    @kylegerhard1264 3 роки тому

    How do you get the robot to go backwards with gyro drive program?

    • @gibfordsrobotlab
      @gibfordsrobotlab  3 роки тому

      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.

  • @kibitzforu
    @kibitzforu 3 роки тому +1

    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...

    • @gibfordsrobotlab
      @gibfordsrobotlab  2 роки тому

      Right now, the only solution I have is to put the robot square into a wall and reset the yaw angle.

  • @JevoUK
    @JevoUK 3 роки тому

    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?

    • @JevoUK
      @JevoUK 3 роки тому +1

      I've just worked it out. :)

    • @gibfordsrobotlab
      @gibfordsrobotlab  3 роки тому +1

      @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.

    • @JevoUK
      @JevoUK 3 роки тому

      @@gibfordsrobotlab Thank you I’ll take a look.

  • @cmesroboticsclub4450
    @cmesroboticsclub4450 Рік тому

    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?

    • @gibfordsrobotlab
      @gibfordsrobotlab  Рік тому

      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.

    • @cmesroboticsclub4450
      @cmesroboticsclub4450 Рік тому

      @@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!

  • @patricksturgill9441
    @patricksturgill9441 2 роки тому

    Could you show us this in Python?