# Autonomous Topic Map Help

**URL:** <https://forum.theavr.org/t/autonomous-topic-map-help/735>\
**Category:** AVR Drone Software\
**Created:** [November 7, 2023, 9:19pm UTC](https://forum.theavr.org/t/autonomous-topic-map-help/735 "2023-11-07T21:19:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonah](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jonah](https://forum.theavr.org/u/Jonah)\
**Post date:** [November 7, 2023, 9:19pm UTC](https://forum.theavr.org/t/autonomous-topic-map-help/735/1 "2023-11-07T21:19:08Z")

</div>

[https://pastebin.com/NKEBysz2](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?

---

<div class="post-metadata">

**Author:** ![asher](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/asher/32/323_2.png) [@asher](https://forum.theavr.org/u/asher)\
**Post date:** [November 8, 2023, 2:35am UTC](https://forum.theavr.org/t/autonomous-topic-map-help/735/2 "2023-11-08T02:35:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jonah](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jonah](https://forum.theavr.org/u/Jonah)\
**Post date:** [November 8, 2023, 1:35pm UTC](https://forum.theavr.org/t/autonomous-topic-map-help/735/3 "2023-11-08T13:35:06Z")

</div>

Will do!

Thanks for the help
