Daniel Petti | dfc90ba | 2015-02-17 21:42:15 -0800 | [diff] [blame] | 1 | #ifndef FRC971_ACTORS_STACK_ACTOR_H_ |
| 2 | #define FRC971_ACTORS_STACK_ACTOR_H_ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | #include <memory> |
| 7 | |
| 8 | #include "aos/common/actions/actions.h" |
| 9 | #include "aos/common/actions/actor.h" |
| 10 | #include "frc971/actors/stack_action.q.h" |
| 11 | |
| 12 | namespace frc971 { |
| 13 | namespace actors { |
| 14 | |
| 15 | class StackActor |
| 16 | : public aos::common::actions::ActorBase<StackActionQueueGroup> { |
| 17 | public: |
| 18 | explicit StackActor(StackActionQueueGroup *queues); |
| 19 | |
Ben Fredrickson | 32e6c25 | 2015-02-21 23:53:38 -0800 | [diff] [blame] | 20 | void DoProfile(double height, double angle, bool grabbers); |
| 21 | |
Austin Schuh | dc17101 | 2015-02-22 21:36:55 -0800 | [diff] [blame] | 22 | bool RunAction(const StackParams ¶ms) override; |
Daniel Petti | dfc90ba | 2015-02-17 21:42:15 -0800 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | typedef aos::common::actions::TypedAction<StackActionQueueGroup> StackAction; |
| 26 | |
| 27 | // Makes a new stackActor action. |
Austin Schuh | dc17101 | 2015-02-22 21:36:55 -0800 | [diff] [blame] | 28 | ::std::unique_ptr<StackAction> MakeStackAction(const StackParams ¶ms); |
Daniel Petti | dfc90ba | 2015-02-17 21:42:15 -0800 | [diff] [blame] | 29 | |
| 30 | } // namespace actors |
| 31 | } // namespace frc971 |
| 32 | |
| 33 | #endif |