blob: 187ab6a50d588cd2d92fb27a6e7723d869978871 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001#include <stdint.h>
2
3namespace frc971 {
4namespace 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
13const uint16_t kCompTeamNumber = 971;
14const uint16_t kPracticeTeamNumber = 5971;
15
Austin Schuhfa033692013-02-24 01:00:55 -080016// Sets *angle to how many radians from horizontal to the location of interest.
James Kuszmaule06e2512013-03-02 15:04:53 -080017bool wrist_hall_effect_start_angle(double *angle);
18bool wrist_hall_effect_stop_angle(double *angle);
Austin Schuhfa033692013-02-24 01:00:55 -080019// These are the soft stops for up and down.
James Kuszmaule06e2512013-03-02 15:04:53 -080020bool wrist_lower_limit(double *angle);
21bool wrist_upper_limit(double *angle);
Austin Schuhfa033692013-02-24 01:00:55 -080022// These are the hard stops. Don't use these for anything but testing.
James Kuszmaule06e2512013-03-02 15:04:53 -080023bool wrist_lower_physical_limit(double *angle);
24bool wrist_upper_physical_limit(double *angle);
Austin Schuhfa033692013-02-24 01:00:55 -080025
26// Returns the speed to move the wrist at when zeroing in rad/sec
James Kuszmaule06e2512013-03-02 15:04:53 -080027bool wrist_zeroing_speed(double *speed);
Austin Schuhfa033692013-02-24 01:00:55 -080028
brians343bc112013-02-10 01:53:46 +000029// Sets *center to how many pixels off center the vertical line
30// on the camera view is.
31bool camera_center(int *center);
brians343bc112013-02-10 01:53:46 +000032
33} // namespace constants
34} // namespace frc971