Daniel Petti | aece37f | 2014-10-25 17:13:44 -0700 | [diff] [blame^] | 1 | #ifndef BOT3_CONTROL_LOOPS_DRIVETRAIN_CONSTANTS_H_ |
| 2 | #define BOT3_CONTROL_LOOPS_DRIVETRAIN_CONSTANTS_H_ |
| 3 | |
| 4 | #include "frc971/control_loops/state_feedback_loop.h" |
| 5 | #include "frc971/shifter_hall_effect.h" |
| 6 | |
| 7 | namespace bot3 { |
| 8 | namespace control_loops { |
| 9 | |
| 10 | // TODO(danielp): Figure out the real values for these constants. |
| 11 | constexpr ::frc971::constants::ShifterHallEffect kBot3LeftDriveShifter = |
| 12 | {555, 657, 660, 560, 0.2, 0.7}; |
| 13 | constexpr ::frc971::constants::ShifterHallEffect kBot3RightDriveShifter = |
| 14 | {555, 660, 644, 552, 0.2, 0.7}; |
| 15 | |
| 16 | constexpr double kBot3TurnWidth = 0.5; |
| 17 | constexpr double kBot3DrivetrainDoneDistance = 0.02; |
| 18 | |
| 19 | constexpr double kBot3HighGearRatio = 18.0 / 60.0 * 18.0 / 50.0; |
| 20 | constexpr double kBot3LowGearRatio = 28.0 / 50.0 * 18.0 / 50.0; |
| 21 | |
| 22 | } // control_loops |
| 23 | } // bot3 |
| 24 | |
| 25 | #endif |