Skip to content

Commit 4ac155c

Browse files
authored
Merge pull request #305 from thedropbears/retune_balistics
retune balistics
2 parents c921303 + 5b0577f commit 4ac155c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/ballistics.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@ class BallisticsComponent:
4343
barge_blue_mid_end_point = Translation2d(FIELD_LENGTH / 2, FIELD_WIDTH / 2)
4444

4545
# TODO Retune for >= 4m when the space allows
46-
FLYWHEEL_DISTANCE_LOOKUP = (1.5, 2.0, 3.0) # , 4.0
46+
FLYWHEEL_DISTANCE_LOOKUP = (1.5, 2.0, 3.0, 4.0)
4747
# Keys of the lookup dictionaries are ball diameters in inches
4848
# Tuples are values corresponding to the distances above
4949
# fmt: off
5050
FLYWHEEL_TOP_SPEED_LOOKUP = {
51-
ALGAE_MIN_DIAMETER: (30, 32.5, 38.0), # , 90
51+
ALGAE_MIN_DIAMETER: (31, 34, 37.0, 44.5),
5252
# 16.5: (60, 80),
53-
ALGAE_MAX_DIAMETER: (33, 36, 39.0), # , 50
53+
ALGAE_MAX_DIAMETER: (35, 37, 41.0, 45.0),
5454
}
5555
# Currently we use the same speed top and bottom, but this could be seperate
5656
FLYWHEEL_BOTTOM_SPEED_LOOKUP = FLYWHEEL_TOP_SPEED_LOOKUP
5757
FLYWHEEL_ANGLE_LOOKUP = {
58-
ALGAE_MIN_DIAMETER: (math.radians(-10), math.radians(-12), math.radians(-19)), # , math.radians(-25)
58+
ALGAE_MIN_DIAMETER: (math.radians(-10), math.radians(-15), math.radians(-19), math.radians(-25)),
5959
# 16.5: (math.radians(-15), math.radians(-20)),
60-
ALGAE_MAX_DIAMETER: (math.radians(-10), math.radians(-12), math.radians(-19)), # , math.radians(-25)
60+
ALGAE_MAX_DIAMETER: (math.radians(-10), math.radians(-15), math.radians(-19), math.radians(-25)),
6161
}
6262
# fmt: on
6363
BALL_SIZES = list(FLYWHEEL_ANGLE_LOOKUP.keys())

0 commit comments

Comments
 (0)