blob: 1dcc94727981562292ac6e105598b0a6f8d407f3 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001package frc971.control_loops;
2
3import "aos/common/control_loop/control_loops.q";
4
5queue_group Drivetrain {
6 implements aos.control_loops.ControlLoop;
7
8 message Goal {
9 float steering;
10 float throttle;
11 bool highgear;
12 bool quickturn;
13 bool control_loop_driving;
14 float left_goal;
Austin Schuh4352ac62013-03-19 06:23:16 +000015 float left_velocity_goal;
brians343bc112013-02-10 01:53:46 +000016 float right_goal;
Austin Schuh4352ac62013-03-19 06:23:16 +000017 float right_velocity_goal;
brians343bc112013-02-10 01:53:46 +000018 };
19
20 message Position {
21 double left_encoder;
22 double right_encoder;
Austin Schuh427b3702013-11-02 13:44:09 -070023 double left_shifter_position;
24 double right_shifter_position;
Brian Silvermande8fd552013-11-03 15:53:42 -080025 double battery_voltage;
brians343bc112013-02-10 01:53:46 +000026 };
27
28 message Output {
29 float left_voltage;
30 float right_voltage;
31 };
32
33 message Status {
34 bool is_done;
35 };
36
37 queue Goal goal;
38 queue Position position;
39 queue Output output;
40 queue Status status;
41};
42
43queue_group Drivetrain drivetrain;