Skip to content

Implement shooting pipeline #6

@wxb1ank

Description

@wxb1ank

We have code to interface with the driver joystick and Limelight camera, to control the gatherer/shooter motors, and, when #5 is implemented, to track the position of the robot. The next step is to connect these individual parts into a cohesive whole with a button-driven command (or multiple) that:

  1. Engages the gatherer motor until cargo is collected;
  2. Locates the target hub with the Limelight and uses PID to adjust the robot's yaw until it is 'close enough' to facing the target;
  3. Gets the necessary shooter motor power by feeding the horizontal distance of the robot to the desired hub (obtained from odometry) into ShooterSubsystem::powerToHitTarget;
  4. Engages the shooter motor with the necessary power until the cargo is launched; and then
  5. Disengages both the gatherer and shooter motors.

This shooting pipeline must, of course, be available in both autonomous and teleoperated modes.

(If shooting does not occur instantaneously after gathering, then step 1 and steps 2–5 should each be initiated by a single button press.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions