brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame^] | 1 | #include <stdint.h> |
| 2 | |
| 3 | namespace frc971 { |
| 4 | namespace constants { |
| 5 | |
| 6 | // Has all of the numbers that change for both robots and makes it easy to |
| 7 | // retrieve the values for the current one. |
| 8 | // |
| 9 | // All of the public functions to retrieve various values take a pointer to |
| 10 | // store their output value into and assume that aos::robot_state->get() is |
| 11 | // not null and is correct. They return true on success. |
| 12 | |
| 13 | const uint16_t kCompTeamNumber = 971; |
| 14 | const uint16_t kPracticeTeamNumber = 5971; |
| 15 | |
| 16 | // Sets *horizontal to how many radians from the hall effect transition point |
| 17 | // to horizontal for the wrist. |
| 18 | bool horizontal_offset(double *horizontal); |
| 19 | // Sets *center to how many pixels off center the vertical line |
| 20 | // on the camera view is. |
| 21 | bool camera_center(int *center); |
| 22 | // Sets *talons to whether or not the drivetrain is using talons (otherwise it's |
| 23 | // using victors). |
| 24 | // Sets *controllers to what type of motor controllers to use for the drivetrain |
| 25 | // (one of MotorOutput's constants). |
| 26 | bool drivetrain_motor_controllers(char *controllers); |
| 27 | |
| 28 | } // namespace constants |
| 29 | } // namespace frc971 |