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 | |
Austin Schuh | fa03369 | 2013-02-24 01:00:55 -0800 | [diff] [blame] | 16 | // Sets *angle to how many radians from horizontal to the location of interest. |
| 17 | bool horizontal_hall_effect_start_angle(double *angle); |
| 18 | bool horizontal_hall_effect_stop_angle(double *angle); |
| 19 | // These are the soft stops for up and down. |
| 20 | bool horizontal_lower_limit(double *angle); |
| 21 | bool horizontal_upper_limit(double *angle); |
| 22 | // These are the hard stops. Don't use these for anything but testing. |
| 23 | bool horizontal_lower_physical_limit(double *angle); |
| 24 | bool horizontal_upper_physical_limit(double *angle); |
| 25 | |
| 26 | // Returns the speed to move the wrist at when zeroing in rad/sec |
| 27 | bool horizontal_zeroing_speed(double *speed); |
| 28 | |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 29 | // Sets *center to how many pixels off center the vertical line |
| 30 | // on the camera view is. |
| 31 | bool camera_center(int *center); |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 32 | |
| 33 | } // namespace constants |
| 34 | } // namespace frc971 |