Line Detector Part 4 (Color Counting LEVEL 3)

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

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

  • @invisii6051
    @invisii6051 3 года назад +4

    Mans is out here savin grades and lives

  • @josephspillman265
    @josephspillman265 3 года назад +1

    Thank you Mark! Cheers from Vancouver Island, Canada

  • @mikey.4646
    @mikey.4646 3 года назад +4

    Thank you man I actually understand it now

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

    Awesome! This helps so much, thanks!

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

    can u do a block code that can count all the Blue, Green, and Red lines it passes through
    for sensor

    • @MarkJohnston
      @MarkJohnston  3 года назад

      I'm confused. Isn't that exactly what this video shows?

    • @ryanlu5722
      @ryanlu5722 3 года назад +1

      @@MarkJohnston will this work for all the levels

    • @MarkJohnston
      @MarkJohnston  3 года назад

      @@ryanlu5722 I don’t think THIS video will but parts 1,2,3 do!

  • @SohaibNKhan
    @SohaibNKhan 3 года назад

    could you do counting lines level 3?

    • @MarkJohnston
      @MarkJohnston  3 года назад +1

      I'm sorry for the delayed response (my household has been sick and it's been a difficult week). I don't think I made one because level 3 is just a combo of the stuff in 1 and 2.

  • @darthsplatsheep9874
    @darthsplatsheep9874 3 года назад

    what if my variables do random numbers instead of the ones i put it to record

    • @MarkJohnston
      @MarkJohnston  3 года назад

      I don't understand your question. Can you give me some more detail?

    • @dudwat
      @dudwat 3 года назад

      @@MarkJohnston I had the same issue. I set the variable in the if then statement to change by 1. Instead it changes by 8.67 or 9 and sometimes even 10.

    • @MarkJohnston
      @MarkJohnston  3 года назад

      @@dudwat do you have the code setup EXACTLY like mine in the video? Many time the amount will jump like that if it’s “counting” in the loop without anything interrupting the program flow.

    • @dudwat
      @dudwat 3 года назад

      @@MarkJohnston yes

    • @dudwat
      @dudwat 3 года назад +1

      @@MarkJohnston Nevermind I fixed the issue. I just made the count by .125. It wasn't exactly 8,3,3,2 but it was like 8.65, 3.462, 3.238 and 2.783. Anyways thanks for your help!

  • @sko0tter535
    @sko0tter535 3 года назад

    can you do this, but with C?

    • @MarkJohnston
      @MarkJohnston  3 года назад

      Like RobotC? VR doesn't support C but it does have Python.