Skip to content

Commit

Permalink
Merge pull request #20 from Mars1523/master
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald authored Sep 19, 2018
2 parents 09d5d8a + cd3f670 commit 6cf425e
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 6cf425e

Please sign in to comment.