Skip to content

New LaserCan Sensors #22

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

Merged
merged 10 commits into from
May 24, 2025
Merged

New LaserCan Sensors #22

merged 10 commits into from
May 24, 2025

Conversation

bit-turtle
Copy link
Contributor

Added LaserCan Sensors from libgrapplefrc to the Intake Subsystem

Simulation:

  • Works in sim
  • Uses MockLaserCan class when in simulation

New Functions:

  • coralVertical(): Boolean
    • For L2, L3, and L4 Scoring
  • coralHorizontal(): Boolean
    • For L1 Scoring
  • coralControlled(): Boolean
    • Coral is either vertical or horizontal
  • coralMisplaced(): Boolean
    • Coral is detected but not vertical or horizontal

New Constants:

  • Sensor CAN IDs:
    • BOTTOM_CORAL_SENSOR_CAN_ID
    • LEFT_CORAL_SENSOR_CAN_ID
    • RIGHT_CORAL_SENSOR_CAN_ID
    • TOP_CORAL_SENSOR_CAN_ID
  • LASER_CAN_SENSOR_MIN_DISTANCE_MM
    • Minimum distance for the LaserCan Sensor to detect Coral
    • Currently set to 64mm

@bit-turtle bit-turtle requested a review from Adarondek May 23, 2025 22:40
@Tinbite-A Tinbite-A merged commit ddb4b0a into main May 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants