Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Noskcaj19 committed Sep 19, 2018
1 parent 09d5d8a commit cd3f670
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frameworks/magicbot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ Your autonomous object may have the following attributes:
- ``DISABLED`` - If True, don't allow this mode to be selected
- ``DEFAULT`` - If True, this is the default autonomous mode selected

You cannot access injected variables from component constructors.
If you need to do so you can implement a ``setup`` function, which will
be called after variables have been injected.

If you build your autonomous mode using the :class:`AutonomousStateMachine <magicbot.state_machine.AutonomousStateMachine>`
class, it makes it easier to build more expressive autonomous modes that
are easier to reason about.
Expand Down

0 comments on commit cd3f670

Please sign in to comment.