blob: 82c9607841b26ba23ca48fb0216b29af755f9820 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001namespace 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.
9table Goal {
10 // The control loop needs to intake now.
11 intake:bool;
12}
13
14table 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
20table Status {
21 // Lets consumers of basic_queue.status know if
22 // the requested intake is finished.
23 intake_complete:bool;
24}
25
26table 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
32root_type Goal;
33root_type Position;
34root_type Status;
35root_type Output;