Austin Schuh | 4701741 | 2013-03-10 11:50:46 -0700 | [diff] [blame] | 1 | package frc971.autonomous; |
| 2 | |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 3 | import "aos/actions/actions.q"; |
Philipp Schrader | 4bd29b1 | 2017-02-22 04:42:27 +0000 | [diff] [blame] | 4 | |
Austin Schuh | 4701741 | 2013-03-10 11:50:46 -0700 | [diff] [blame] | 5 | message AutoControl { |
| 6 | // True if auto mode should be running, false otherwise. |
| 7 | bool run_auto; |
| 8 | }; |
| 9 | |
| 10 | queue AutoControl autonomous; |
Philipp Schrader | 4bd29b1 | 2017-02-22 04:42:27 +0000 | [diff] [blame] | 11 | |
| 12 | message AutonomousMode { |
| 13 | // Mode read from the mode setting sensors. |
| 14 | int32_t mode; |
| 15 | }; |
| 16 | |
| 17 | queue AutonomousMode auto_mode; |
| 18 | |
| 19 | struct AutonomousActionParams { |
| 20 | // The mode from the sensors when auto starts. |
| 21 | int32_t mode; |
| 22 | }; |
| 23 | |
| 24 | queue_group AutonomousActionQueueGroup { |
| 25 | implements aos.common.actions.ActionQueueGroup; |
| 26 | |
| 27 | message Goal { |
| 28 | uint32_t run; |
| 29 | AutonomousActionParams params; |
| 30 | }; |
| 31 | |
| 32 | queue Goal goal; |
| 33 | queue aos.common.actions.Status status; |
| 34 | }; |