Program stops running

We are having an issue where we download the program to the V5 Brain but when we try to run the program, it just stops running after 1 second. I can’t seem to find any errors in the code and I’m not sure why it stops. Anyone have an idea?

Hello.

Please set your project to Public, Including Code in the settings, and then provide a link to it.

Cheers, Sam

Here is a link to the project. This is going to be a good lesson because we can’t find an error so we are about to learn something!
https://www.robotmesh.com/studio/601d9b1ebf4a15058c6de54d

Looks like this program doesn’t define a controller?

image

In the interface monitor on the right side of the screen, click on the gear icon next to “Use controller here:” and select “Controller (single)”.

image