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 | |
Daniel Petti | 532c3e9 | 2014-11-04 22:15:19 -0800 | [diff] [blame] | 4 | #include "bot3/shifter_hall_effect.h" |
Daniel Petti | aece37f | 2014-10-25 17:13:44 -0700 | [diff] [blame] | 5 | |
| 6 | namespace bot3 { |
| 7 | namespace control_loops { |
| 8 | |
| 9 | // TODO(danielp): Figure out the real values for these constants. |
Daniel Petti | 532c3e9 | 2014-11-04 22:15:19 -0800 | [diff] [blame] | 10 | constexpr constants::ShifterHallEffect kBot3LeftDriveShifter = |
| 11 | {170, 475, 1.2, 1.0}; |
| 12 | constexpr constants::ShifterHallEffect kBot3RightDriveShifter = |
| 13 | {177, 486, 1.2, 1.0}; |
Daniel Petti | aece37f | 2014-10-25 17:13:44 -0700 | [diff] [blame] | 14 | |
| 15 | constexpr double kBot3TurnWidth = 0.5; |
| 16 | constexpr double kBot3DrivetrainDoneDistance = 0.02; |
| 17 | |
| 18 | constexpr double kBot3HighGearRatio = 18.0 / 60.0 * 18.0 / 50.0; |
| 19 | constexpr double kBot3LowGearRatio = 28.0 / 50.0 * 18.0 / 50.0; |
| 20 | |
| 21 | } // control_loops |
| 22 | } // bot3 |
| 23 | |
| 24 | #endif |