brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | package frc971.control_loops; |
| 2 | |
| 3 | import "aos/common/control_loop/control_loops.q"; |
| 4 | |
| 5 | queue_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 Schuh | 4352ac6 | 2013-03-19 06:23:16 +0000 | [diff] [blame^] | 15 | float left_velocity_goal; |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 16 | float right_goal; |
Austin Schuh | 4352ac6 | 2013-03-19 06:23:16 +0000 | [diff] [blame^] | 17 | float right_velocity_goal; |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | message Position { |
| 21 | double left_encoder; |
| 22 | double right_encoder; |
| 23 | }; |
| 24 | |
| 25 | message Output { |
| 26 | float left_voltage; |
| 27 | float right_voltage; |
| 28 | }; |
| 29 | |
| 30 | message Status { |
| 31 | bool is_done; |
| 32 | }; |
| 33 | |
| 34 | queue Goal goal; |
| 35 | queue Position position; |
| 36 | queue Output output; |
| 37 | queue Status status; |
| 38 | }; |
| 39 | |
| 40 | queue_group Drivetrain drivetrain; |