blob: ab360e0d380576cd515e86ff5da56392b15abd3a [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
16// Sets *horizontal to how many radians from the hall effect transition point
17// to horizontal for the wrist.
18bool horizontal_offset(double *horizontal);
19// Sets *center to how many pixels off center the vertical line
20// on the camera view is.
21bool 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).
26bool drivetrain_motor_controllers(char *controllers);
27
28} // namespace constants
29} // namespace frc971