Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 1 | namespace frc971.codelab; |
| 2 | |
| 3 | // The theme of this basic test is a simple intake system. |
| 4 | // |
| 5 | // The system will have a motor driven by the voltage returned |
| 6 | // by output, and then eventually this motor, when run enough, |
| 7 | // will trigger the limit_sensor. The hypothetical motor should shut |
| 8 | // off in that hypothetical situation to avoid hypothetical burnout. |
| 9 | table Goal { |
| 10 | // The control loop needs to intake now. |
| 11 | intake:bool; |
| 12 | } |
| 13 | |
| 14 | table Position { |
| 15 | // This is a potential incoming sensor value letting us know |
| 16 | // if we need to be intaking. |
| 17 | limit_sensor:bool; |
| 18 | } |
| 19 | |
| 20 | table Status { |
| 21 | // Lets consumers of basic_queue.status know if |
| 22 | // the requested intake is finished. |
| 23 | intake_complete:bool; |
| 24 | } |
| 25 | |
| 26 | table Output { |
| 27 | // This would be set up to drive a hypothetical motor that would |
| 28 | // hope to intake something. |
| 29 | intake_voltage:double; |
| 30 | } |
| 31 | |
| 32 | root_type Goal; |
| 33 | root_type Position; |
| 34 | root_type Status; |
| 35 | root_type Output; |