Daniel Petti | b0733be | 2014-11-14 22:44:03 -0800 | [diff] [blame] | 1 | #ifndef BOT3_ACTIONS_DRIVETRAIN_ACTION_H_ |
| 2 | #define BOT3_ACTIONS_DRIVETRAIN_ACTION_H_ |
| 3 | |
| 4 | #include <memory> |
| 5 | |
| 6 | #include "frc971/actions/action.h" |
| 7 | #include "frc971/actions/action_client.h" |
| 8 | #include "frc971/actions/drivetrain_action.q.h" |
| 9 | |
| 10 | namespace bot3 { |
| 11 | namespace actions { |
| 12 | |
| 13 | class DrivetrainAction : public |
| 14 | ::frc971::actions::ActionBase<::frc971::actions::DrivetrainActionQueueGroup> { |
| 15 | public: |
| 16 | explicit DrivetrainAction(::frc971::actions::DrivetrainActionQueueGroup* s); |
| 17 | |
| 18 | virtual void RunAction(); |
| 19 | }; |
| 20 | |
| 21 | // Makes a new DrivetrainAction action. |
| 22 | ::std::unique_ptr<::frc971::TypedAction |
| 23 | < ::frc971::actions::DrivetrainActionQueueGroup>> |
| 24 | MakeDrivetrainAction(); |
| 25 | |
| 26 | } // namespace actions |
| 27 | } // namespace bot3 |
| 28 | |
| 29 | #endif |