blob: 95a74f5634d066865dc5a73a52c1e8babdcccbef [file] [log] [blame]
Daniel Pettiaece37f2014-10-25 17:13:44 -07001#ifndef BOT3_CONTROL_LOOPS_DRIVETRAIN_CONSTANTS_H_
2#define BOT3_CONTROL_LOOPS_DRIVETRAIN_CONSTANTS_H_
3
Daniel Petti532c3e92014-11-04 22:15:19 -08004#include "bot3/shifter_hall_effect.h"
Daniel Pettiaece37f2014-10-25 17:13:44 -07005#include "frc971/control_loops/state_feedback_loop.h"
Daniel Pettiaece37f2014-10-25 17:13:44 -07006
7namespace bot3 {
8namespace control_loops {
9
10// TODO(danielp): Figure out the real values for these constants.
Daniel Petti532c3e92014-11-04 22:15:19 -080011constexpr constants::ShifterHallEffect kBot3LeftDriveShifter =
12 {170, 475, 1.2, 1.0};
13constexpr constants::ShifterHallEffect kBot3RightDriveShifter =
14 {177, 486, 1.2, 1.0};
Daniel Pettiaece37f2014-10-25 17:13:44 -070015
16constexpr double kBot3TurnWidth = 0.5;
17constexpr double kBot3DrivetrainDoneDistance = 0.02;
18
19constexpr double kBot3HighGearRatio = 18.0 / 60.0 * 18.0 / 50.0;
20constexpr double kBot3LowGearRatio = 28.0 / 50.0 * 18.0 / 50.0;
21
22} // control_loops
23} // bot3
24
25#endif