Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

RoboticsCode2019 (FRC Robot Code)

Java robot code for FRC Team #7136 (Thistletown Scot Bots) for the 2019 season. This project follows the WPILib “TimedRobot” structure and includes drivetrain control, operator controls for mechanisms, and dual USB camera streaming.

Technologies Used

  • Java
  • WPILib (FRC): TimedRobot, Joystick, DifferentialDrive, SmartDashboard
  • Motor control (WPILib PWM): PWMVictorSPX, Talon, SpeedControllerGroup
  • CameraServer: CameraServer, UsbCamera

Features

  • Arcade/curvature drive using DifferentialDrive.curvatureDrive() with a Logitech-style gamepad/joystick
  • 4-motor drivetrain (left/right groups) controlled via PWMVictorSPX motor controllers
  • Input shaping + smoothing
    • squared joystick response for turning/throttle at larger inputs
    • gradual ramping/decay behavior for smoother control
  • Mechanism controls (operator joystick)
    • “hand” motor control via buttons (up/down)
    • ball intake control via trigger axes
  • Dual USB camera streaming with configurable resolution from robotMap
  • Centralized configuration via robotMap (ports, speed limits, camera resolution, thresholds)

The Process

  1. Set up the robot project structure using WPILib’s TimedRobot model.
  2. Created a robotMap file to hold ports and tunable constants in one place.
  3. Split controls into two classes:
    • OIDrive for drivetrain logic
    • OI for mechanism/operator controls
  4. Added CameraServer support for two USB cameras and set the resolution using config values.
  5. Integrated everything in Robot.robotInit() and called control loops in periodic methods.

Credits / Attribution

This codebase was developed by FRC Team #7136 (Thistletown Scot Bots) and contributors during the 2019 season. This repository is maintained as an archive/portfolio reference. I did not author all of the code.

Usage

Shared for learning and reference. Please contact the team/owners for reuse permissions if you plan to deploy or redistribute.

About

Code for FRC Robotics Team #7136 "Thistletown Scot Bots" from the competing year of 2019.

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages