Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. #ifndef CONSTANTS_H
  2. #define CONSTANTS_H
  3.  
  4. #include "../main.h"
  5.  
  6. // Drive MOTOR PORTS
  7.  
  8. const int FRONT_LEFT_MOTOR_PORT = 1;
  9. const int FRONT_RIGHT_MOTOR_PORT = 10;
  10. const int BACK_LEFT_MOTOR_PORT = 16;
  11. const int BACK_RIGHT_MOTOR_PORT = 20;
  12.  
  13. const int TRAY_MOTOR_PORT = 11;
  14.  
  15. const int LEFT_INTAKE_MOTOR_PORT = 15;
  16. const int RIGHT_INTAKE_MOTOR_PORT = 19;
  17.  
  18. const int ARM_MOTOR_PORT = 9;
  19.  
  20. const okapi::QLength ROBOT_LENGTH = 15.5_in;
  21. const int LIMIT_SWITCH_PORT = 'A';
  22.  
  23. // ROBOT CONSTANTS
  24.  
  25. const okapi::QLength BACK_WHEEL_DIAMETER = 4_in;
  26.  
  27. /**
  28. * Horizontal distance between center of left
  29. * side wheels and center of right side wheels
  30. *
  31. *
  32. */
  33. const okapi::QLength WHEELBASE_WIDTH = 10_in;
  34.  
  35. // PARAMETERS
  36.  
  37. const bool ARCADE_DRIVE = true;
  38.  
  39. // AUTONOMOUS ROUTINES
  40.  
  41. const int DO_NOTHING_AUTO = 0;
  42. const int SMALL_RED = 1;
  43. const int SMALL_BLUE = 2;
  44. const int LARGE_RED_4 = 3;
  45. const int LARGE_BLUE_4 = 4;
  46. const int SKILLS_RUN = 5;
  47. const int DRIVE_FORWARD_AUTO = 6;
  48. const int ONE_CUBE_AUTO = 7;
  49. const int SMALL_RED_MANUAL = 8;
  50. const int SMALL_RED_6 = 9;
  51. const int SMALL_BLUE_6 = 10;
  52.  
  53.  
  54.  
  55. // LIFT SETPOINTS
  56. const double HOME = 0;
  57. // GAME PIECE Constants
  58. const okapi::QLength HEIGHT_OF_CUBE = 5.5_in;
  59. const okapi::QLength HEIGHT_OF_TOWER = 18_in;
  60.  
  61. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement