blob: a72514cc7f7cc44986dc73bd6bc53a2d4b871a15 [file] [log] [blame]
Austin Schuh47017412013-03-10 11:50:46 -07001package frc971.autonomous;
2
John Park33858a32018-09-28 23:05:48 -07003import "aos/actions/actions.q";
Philipp Schrader4bd29b12017-02-22 04:42:27 +00004
Austin Schuh47017412013-03-10 11:50:46 -07005message AutoControl {
6 // True if auto mode should be running, false otherwise.
7 bool run_auto;
8};
9
10queue AutoControl autonomous;
Philipp Schrader4bd29b12017-02-22 04:42:27 +000011
12message AutonomousMode {
13 // Mode read from the mode setting sensors.
14 int32_t mode;
15};
16
17queue AutonomousMode auto_mode;
18
19struct AutonomousActionParams {
20 // The mode from the sensors when auto starts.
21 int32_t mode;
22};
23
24queue_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};