<< return to Pixycam.com

Understanding the chase program

Hi

I am new to Lego Mindstorms EV3 and I am trying to understand the chase program that is supplied with the camera.

It would really be a huge help is someone could annotate the code so that I can understand how it works as I am getting stuck from the very first logic block!

Here is an image of the Lego Chase program:

chase

Any help greatly appreciated

Hi,

we have a writeup here, please let me know if this doesn’t answer your questions!

https://docs.pixycam.com/wiki/doku.php?id=wiki:v1:lego_chase_demo#what-s-going-on-in-the-track-program

Cheers,
Jesse

Continuing the discussion from Understanding the chase program:

Hi Jesse thanks for replying. I saw the guide which explains the pixy parts well, but do have a few questions - mainly because I know so little about mindstorms

I can’t work out what the first 2 blocks are doing. The first Pixy block does not use the outputs of any of the tabs, and the logic compare block - doesn’t that always output true?

So then, is true always being passed to the 2 switch blocks? That doesn’t seem to make sense, so I’m wondering what I’m missing.

Thanks for your patience.

Mikki

I’m going to defer to @edge here, I believe he knows this better than I do…