Brian Silverman | 17f503e | 2015-08-02 18:17:18 -0700 | [diff] [blame] | 1 | #ifndef Y2014_ACTIONS_DRIVETRAIN_ACTION_H_ |
| 2 | #define Y2014_ACTIONS_DRIVETRAIN_ACTION_H_ |
| 3 | |
| 4 | #include <memory> |
| 5 | |
| 6 | #include "y2014/actors/drivetrain_action.q.h" |
| 7 | #include "aos/common/actions/actor.h" |
| 8 | #include "aos/common/actions/actions.h" |
| 9 | |
| 10 | namespace frc971 { |
| 11 | namespace actors { |
| 12 | |
| 13 | class DrivetrainActor |
| 14 | : public aos::common::actions::ActorBase<DrivetrainActionQueueGroup> { |
| 15 | public: |
| 16 | explicit DrivetrainActor(DrivetrainActionQueueGroup* s); |
| 17 | |
| 18 | bool RunAction(const actors::DrivetrainActionParams ¶ms) override; |
| 19 | }; |
| 20 | |
| 21 | typedef aos::common::actions::TypedAction<DrivetrainActionQueueGroup> |
| 22 | DrivetrainAction; |
| 23 | |
| 24 | // Makes a new DrivetrainActor action. |
| 25 | ::std::unique_ptr<DrivetrainAction> MakeDrivetrainAction( |
| 26 | const ::frc971::actors::DrivetrainActionParams& params); |
| 27 | |
| 28 | } // namespace actors |
| 29 | } // namespace frc971 |
| 30 | |
| 31 | #endif |