Это видео недоступно.
Сожалеем об этом.

Python Line Squaring for LEGO Mindstorms / SPIKE Prime ***For SPIKE App version 2 (Legacy)***

Поделиться
HTML-код
  • Опубликовано: 2 фев 2022
  • **For SPIKE App version 2 (Legacy)**
    Learn how to use Python to code your robot to square perpendicularly onto a line. This function is useful for robotics competitions as it can help control your position and heading all in one go.
    To buy SPIKE Prime, visit www.mooreed.co...
    For more in-depth science, building and coding on this subject, visit www.creatoracademy.com.au
    Code for download:
    github.com/Cre...
    LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorise, or endorse this video.

Комментарии • 14

  • @user-educraft347yt
    @user-educraft347yt 2 года назад +3

    amazing robot😃

  • @salva8722
    @salva8722 Год назад

    I thought on first image of the video, that was an example or bar coding; similar to the Edison robot or Lego 8479 truck model. Maybe in next videos you can use these models as inspiration for new spike prime lessons.

  • @Tuzin_est
    @Tuzin_est 2 года назад +3

    Niceeeee

  • @melindajennis2258
    @melindajennis2258 7 месяцев назад

    Already seen them on youTube without having to pay for it. Nothing much more on the area I am paying for. Thought there would be a benefit of seeing much more and in more in depth for tutorials on Level 3 if I paid the subscription fee. Have not found that to be true.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  7 месяцев назад

      No problems, thanks for your feedback! It will help me improve the content of my channel. You are more than welcome to cancel a subscription anytime. Garry

    • @pathwaysforexceptionalchil5167
      @pathwaysforexceptionalchil5167 7 месяцев назад

      I cannot find on my youtube how to stop my subscription please send me information as I want to stop it now before I am charged again.@@CreatorAcademyAustralia

  • @salva8722
    @salva8722 Год назад

    Good explanation. Do you have the map drawing available to be printed?

  • @pathwaysforexceptionalchil5167
    @pathwaysforexceptionalchil5167 7 месяцев назад

    Yes I would like to stop payments to your account - how can I do that?

  • @RWoodmansee
    @RWoodmansee 11 месяцев назад

    I could not find the wait_until function in Spike Prime 3.x and had to resort to using the while loop. I used the same concept that was presented but had to resort to using the 'while' command. Also, using -5 after finding the color was not sufficient when the angle to the colored line grew sharper. I ended up putting the wheel (associated to the sensor that found the color first) in full reverse.
    #define local variables
    left_wheel_status = True
    right_wheel_status = True
    #Check the sensors for the target color if either wheel is still moving
    while left_wheel_status == True or right_wheel_status == True:
    #Stop the robot if both sensors have detected the color, otherwise reverse the wheel direction while the other sensor and wheel continues to find the target color
    if color_sensor.color(left_sensor) == search_color and left_wheel_status == True:
    if right_wheel_status == True:
    motor_pair.move_tank(motor_pair.PAIR_1, -110, 100)
    else:
    motor_pair.move_tank(motor_pair.PAIR_1, 0, 0)
    left_wheel_status = False
    if color_sensor.color(right_sensor) == search_color and right_wheel_status == True:
    if left_wheel_status == True:
    motor_pair.move_tank(motor_pair.PAIR_1, 100, -110)
    else:
    motor_pair.move_tank(motor_pair.PAIR_1, 0, 0)
    right_wheel_status = False

  • @faroukkamal393
    @faroukkamal393 2 года назад +1

    Um you din't conct the hub

  • @melindajennis2258
    @melindajennis2258 7 месяцев назад

    I just subscribed and think I will get out, This is old and does not work on the present coding for python. Very disappointed.

    • @CreatorAcademyAustralia
      @CreatorAcademyAustralia  7 месяцев назад

      Hi! This is a tutorial for the Legacy version of SPIKE that many schools still use. You will need to follow the 3.x tutorials for the latest version of SPIKE. Check out: ruclips.net/video/s_xYXmYRBBg/видео.html Let me know if you need any help! Garry