-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turret Presets #153
Turret Presets #153
Conversation
- Create and refactor desired shooter speed logic into the subsystem - Rename "climberPref" (it was annoying me) - Create preset velocities - Change default locking position back to NONE
…into subwoofer-&-amp-preset
@FRCTeam3255/code-reviewers Currently thinking about our trap implementation. Although I think its nice that we have logic to "shoot into the trap," I find it very unlikely that we'll actually be doing that. It also makes the code simpler if we don't. I'd like to propose making all of the logic simpler by turning the trap score into a preset (like subwoofer & the amp override). For reference, it's currently similar to "Lock Amp" Another similar topic of discussion: the AMP!!!
At this point, what is the Pro of having the lock amp button? I think it won't get used, just adding complexity to the driving experience (which we really want to minimize with our current situation). I propose that we remove the "Lock Amp" button entirely (at least for now) and remap the controller accordingly. also I am taking all of my misc. clean-up changes and moving them to their own pr because i realised i made so many that i just want in main at this point so look out for that pr in like an hour k thx (#162) |
Testing if LockPitch gives us good angles in SIM: WINGObserved Value: 18 degrees CENTERLINEObserved Value: 16 degrees Really bad desmos graph of those here: https://www.desmos.com/calculator/56mrsfygsj |
@ACat701 I agree. I think we just have lock speaker (pose yaw and pitch and static rpm). And then AMP preset (static pitch, yaw, rpm), Trap preset (static pitch, yaw, rpm) and sub preset (static pitch, yaw, rpm). I don't think the robot is physically capable of doing AMP, Trap or Sub of those with anything but static presets. Only speaker can be dynamic. |
Changes have been implemented 👍 |
I changed the height of the speaker to make that test work. It probably did need to be shifted slightly, but not as much as I changed it. In hindsight, the real issue was this: (the todo comment cracks me up lmao) // TODO: Update with real values (MUST DO BEFORE TESTING!)
/**
* The position, in meters, of the center of rotation for the pitch motor
* relative to the center of the robot (Robot Coordinates).
*
* @see <a href=
* "https://docs.wpilib.org/en/stable/docs/software/basic-programming/coordinate-system.html">Robot
* Coordinate System</a>
*/
public static final Transform3d ROBOT_TO_PITCH = new Transform3d(
new Translation3d(0, 0, 0),
new Rotation3d(0, 0, 0)); @TaylerUva Could you get me the values for this transform 3d (from the cad)? We'll ignore the whole "its on a turret" issue for now. Just get the position based on when the turret is pointing straight ahead |
…into subwoofer-&-amp-preset
Closes #159