Autonomous Code Help

https://pastebin.com/zzuVtFvX

Ok, hopefully the last time asking for code help

I have confirmed that everything is running properly, but the topic map isn’t detecting changes.

For breakpoints, I have measured that:

  • Light turns red at the start, meaning that the script ran
  • Module doesn’t exit immediately, meaning that the while loop is running
  • Light does not turn green when pressing the autonomous enable button, meaning that the topic map is not functional

Seems to me you are using the wrong topic map. From the documentation here, it seems that you need to subscribe to avr/autonomous/enable, and in your code you are subscribing to avr/autonomous. Rest all seems fine to me.

Best,
Om

RIGHT

I was so proud of myself for finding that typo in the sample code provided, but I guess I forgot to change all the instances of it :confused:

tysm for your help

1 Like