Autonomous Topic Map Help

https://pastebin.com/NKEBysz2

Above is the autonomous code that I wrote, which should cause the led strip to activate when the autonomous button on AVRGUI is pressed. It seems like the function isn’t being called, is there something I need to do to set up the loop properly?

Even though you are updating the self.enabled variable, you are never explicitly calling the autonomous_code function. I believe if you call self.autonomous_code() after updating self.enabled, your code should work properly.

1 Like

Will do!

Thanks for the help

1 Like