Skip to content

Commit 177258e

Browse files
author
Suhas
committed
the good stuff
1 parent 8ecec06 commit 177258e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ut-robomaster/src/robots/hero/hero_constants.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ constexpr float CAMERA_TO_PITCH = 0.0f; // distance from main camera lens to
4141
constexpr float NOZZLE_TO_PITCH = 0.0f; // distance from barrel nozzle to pitch axis (m)
4242
constexpr float CAMERA_TO_BARRELS = 0.0f; // vertical ctc offset from camera lens to barrel (m)
4343
constexpr 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

4749
static constexpr float YAW_REDUCTION = 2.005459491f;
4850
static 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}};
127129
const MotorConfig YAW_R{M3508, MOTOR6, CAN_TURRET, false, "yaw right", {}, {}};
128130
const 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;
141141
static constexpr float MAX_ANGULAR_VEL = WHEEL_MAX_VEL * WHEEL_RADIUS / WHEEL_LXY; // rad/s
142142

143143
const float TARGET_PROJECTILE_VELOCITY = 16; // m/s
144-
const float FLYWHEEL_SPEED = 47.5f;
144+
const float FLYWHEEL_SPEED = 190.0f;
145145

146146
const float BALLS_PER_SEC = 4.0f;
147147
const float BALLS_PER_REV = 6.0f;

ut-robomaster/src/robots/standard/standard_constants.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ constexpr float CAMERA_TO_BARRELS = 0.0427f; // vertical ctc offset from camera
4242
constexpr float CAMERA_X_OFFSET = -0.0335f; // horizontal offset of main camera lens (m)
4343

4444
// static constexpr float YAW_OFFSET = 0.0293f; // external encoder + motor encoder angles
45-
static constexpr float YAW_OFFSET = 0.0f;
45+
static constexpr float YAW_OFFSET = -2.3f;
4646
static constexpr float PITCH_OFFSET = 2.79f;
4747
static constexpr float YAW_REDUCTION = 2.0f;
4848
static constexpr float PITCH_REDUCTION = 1.0f;

0 commit comments

Comments
 (0)