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. |
James Kuszmaul | e06e251 | 2013-03-02 15:04:53 -0800 | [diff] [blame] | 17 | bool wrist_hall_effect_start_angle(double *angle); |
| 18 | bool wrist_hall_effect_stop_angle(double *angle); |
Austin Schuh | fa03369 | 2013-02-24 01:00:55 -0800 | [diff] [blame] | 19 | // These are the soft stops for up and down. |
James Kuszmaul | e06e251 | 2013-03-02 15:04:53 -0800 | [diff] [blame] | 20 | bool wrist_lower_limit(double *angle); |
| 21 | bool wrist_upper_limit(double *angle); |
Austin Schuh | fa03369 | 2013-02-24 01:00:55 -0800 | [diff] [blame] | 22 | // These are the hard stops. Don't use these for anything but testing. |
James Kuszmaul | e06e251 | 2013-03-02 15:04:53 -0800 | [diff] [blame] | 23 | bool wrist_lower_physical_limit(double *angle); |
| 24 | bool wrist_upper_physical_limit(double *angle); |
Austin Schuh | fa03369 | 2013-02-24 01:00:55 -0800 | [diff] [blame] | 25 | |
| 26 | // Returns the speed to move the wrist at when zeroing in rad/sec |
James Kuszmaul | e06e251 | 2013-03-02 15:04:53 -0800 | [diff] [blame] | 27 | bool wrist_zeroing_speed(double *speed); |
Austin Schuh | dd3bc41 | 2013-03-16 17:02:40 -0700 | [diff] [blame^] | 28 | bool wrist_zeroing_off_speed(double *speed); |
| 29 | |
Austin Schuh | e20e93c | 2013-03-09 19:54:16 -0800 | [diff] [blame] | 30 | bool angle_adjust_hall_effect_start_angle(double *angle); |
| 31 | bool angle_adjust_hall_effect_stop_angle(double *angle); |
James Kuszmaul | 4a4622b | 2013-03-02 16:28:29 -0800 | [diff] [blame] | 32 | // These are the soft stops for up and down. |
James Kuszmaul | 16bcb5f | 2013-03-03 14:50:07 -0800 | [diff] [blame] | 33 | bool angle_adjust_lower_limit(double *angle); |
| 34 | bool angle_adjust_upper_limit(double *angle); |
James Kuszmaul | 4a4622b | 2013-03-02 16:28:29 -0800 | [diff] [blame] | 35 | // These are the hard stops. Don't use these for anything but testing. |
James Kuszmaul | 16bcb5f | 2013-03-03 14:50:07 -0800 | [diff] [blame] | 36 | bool angle_adjust_lower_physical_limit(double *angle); |
| 37 | bool angle_adjust_upper_physical_limit(double *angle); |
James Kuszmaul | 4a4622b | 2013-03-02 16:28:29 -0800 | [diff] [blame] | 38 | |
| 39 | // Returns speed to move the angle adjust when zeroing, in rad/sec |
James Kuszmaul | 16bcb5f | 2013-03-03 14:50:07 -0800 | [diff] [blame] | 40 | bool angle_adjust_zeroing_speed(double *speed); |
Austin Schuh | dd3bc41 | 2013-03-16 17:02:40 -0700 | [diff] [blame^] | 41 | bool angle_adjust_zeroing_off_speed(double *speed); |
Austin Schuh | fa03369 | 2013-02-24 01:00:55 -0800 | [diff] [blame] | 42 | |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 43 | // Sets *center to how many pixels off center the vertical line |
| 44 | // on the camera view is. |
| 45 | bool camera_center(int *center); |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 46 | |
| 47 | } // namespace constants |
| 48 | } // namespace frc971 |