@@ -41,8 +41,10 @@ constexpr float CAMERA_TO_PITCH = 0.0f; // distance from main camera lens to
4141constexpr float NOZZLE_TO_PITCH = 0 .0f ; // distance from barrel nozzle to pitch axis (m)
4242constexpr float CAMERA_TO_BARRELS = 0 .0f ; // vertical ctc offset from camera lens to barrel (m)
4343constexpr float CAMERA_X_OFFSET = 0 .0f ; // horizontal offset of main camera lens (m)
44- constexpr float PITCH_MIN = -0 .3349f ; // rad
45- constexpr float PITCH_MAX = 0 .3534f ; // rad
44+ constexpr float PITCH_MIN = 0 .15f ; // rad
45+ constexpr float PITCH_MAX = 0 .60f ; // rad
46+ const float YAW_OFFSET = 0 ; // deprecated on hero until gear ratios are fixed
47+ const float PITCH_OFFSET = 1 .90f ;
4648
4749static constexpr float YAW_REDUCTION = 2 .005459491f ;
4850static constexpr float PITCH_REDUCTION = 1 .0f ;
@@ -126,8 +128,6 @@ const MotorConfig
126128 YAW_L{M3508, MOTOR5, CAN_TURRET, false , " yaw left" , {2 .5f , 60 .0f , 0 .0f }, {45 .0f , 0 .0f , 0 .0f }};
127129const MotorConfig YAW_R{M3508, MOTOR6, CAN_TURRET, false , " yaw right" , {}, {}};
128130const MotorConfig PITCH{GM6020, MOTOR7, CAN_TURRET, false , " pitch" , PID_VELOCITY_DEFAULT, {}};
129- const float YAW_OFFSET = 0 ;
130- const float PITCH_OFFSET = 0 ;
131131
132132// Velocities ----------------------------
133133
@@ -141,7 +141,7 @@ static constexpr float MAX_LINEAR_VEL = WHEEL_MAX_VEL * WHEEL_RADIUS;
141141static constexpr float MAX_ANGULAR_VEL = WHEEL_MAX_VEL * WHEEL_RADIUS / WHEEL_LXY; // rad/s
142142
143143const float TARGET_PROJECTILE_VELOCITY = 16 ; // m/s
144- const float FLYWHEEL_SPEED = 47 . 5f ;
144+ const float FLYWHEEL_SPEED = 190 . 0f ;
145145
146146const float BALLS_PER_SEC = 4 .0f ;
147147const float BALLS_PER_REV = 6 .0f ;
0 commit comments