blob: 28848b069f7eb1541af29967fec2df4311680c60 [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
6namespace bot3 {
7namespace control_loops {
8
Daniel Petti532c3e92014-11-04 22:15:19 -08009constexpr constants::ShifterHallEffect kBot3LeftDriveShifter =
Daniel Pettiaf41bb22014-11-14 12:45:30 -080010 {426, 171, 0.6, 0.47};
Daniel Petti532c3e92014-11-04 22:15:19 -080011constexpr constants::ShifterHallEffect kBot3RightDriveShifter =
Daniel Pettiaf41bb22014-11-14 12:45:30 -080012 {424, 172, 0.62, 0.55};
Daniel Pettiaece37f2014-10-25 17:13:44 -070013
14constexpr double kBot3TurnWidth = 0.5;
15constexpr double kBot3DrivetrainDoneDistance = 0.02;
16
Daniel Pettiaf41bb22014-11-14 12:45:30 -080017constexpr double kBot3LowGearRatio = 14.0 / 60.0 * 17.0 / 50.0;
18constexpr double kBot3HighGearRatio = 30.0 / 44.0 * 17.0 / 50.0;
Daniel Pettiaece37f2014-10-25 17:13:44 -070019
Daniel Pettifd0a51d2014-11-07 16:59:24 -080020// If this is true, we don't use the analog hall effects for shifting.
21constexpr bool kBot3SimpleShifting = true;
22
Daniel Pettiaece37f2014-10-25 17:13:44 -070023} // control_loops
24} // bot3
25
26#endif