Austin Schuh | 6979266 | 2015-02-22 21:39:52 -0800 | [diff] [blame] | 1 | #ifndef FRC971_ACTORS_LIFT_ACTOR_H_ |
| 2 | #define FRC971_ACTORS_LIFT_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/lift_action.q.h" |
| 11 | |
| 12 | namespace frc971 { |
| 13 | namespace actors { |
| 14 | |
| 15 | class LiftActor : public aos::common::actions::ActorBase<LiftActionQueueGroup> { |
| 16 | public: |
| 17 | explicit LiftActor(LiftActionQueueGroup *queues); |
| 18 | |
| 19 | bool RunAction(const LiftParams ¶ms) override; |
| 20 | }; |
| 21 | |
| 22 | typedef aos::common::actions::TypedAction<LiftActionQueueGroup> LiftAction; |
| 23 | |
| 24 | // Makes a new LiftActor action. |
| 25 | ::std::unique_ptr<LiftAction> MakeLiftAction(const LiftParams ¶ms); |
| 26 | |
| 27 | } // namespace actors |
| 28 | } // namespace frc971 |
| 29 | |
| 30 | #endif // FRC971_ACTORS_LIFT_ACTOR_H_ |