Skip to content
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

Main dev #1

Closed
wants to merge 17 commits into from
Closed

Main dev #1

wants to merge 17 commits into from

Commits on Aug 29, 2024

  1. Configuration menu
    Copy the full SHA
    338c0fa View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Configuration menu
    Copy the full SHA
    d295d28 View commit details
    Browse the repository at this point in the history
  2. ReAligned and made the code efficient

    Remove Redundant Imports: Remove any unused imports to clean up the code.
    Optimize Command Initialization: Group similar command initializations together to reduce redundancy.
    Use Constants: Use constants for repeated values to avoid magic numbers.
    Simplify Method Calls: Simplify method calls and reduce nested calls where possible.
    Refactor Long Methods: Break down long methods into smaller, more manageable methods.
    riteshrajas committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    cf9d7a7 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Configuration menu
    Copy the full SHA
    40335df View commit details
    Browse the repository at this point in the history
  2. Yollo

    riteshrajas committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    0b290d6 View commit details
    Browse the repository at this point in the history
  3. Yollo

    riteshrajas committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    421d659 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Github suckssss

    FEDS001 committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    5e248ac View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Merged With GirlsComp

    riteshrajas committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    73f4a47 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Added FODC

    There might be future changes
    
    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    83c3e33 View commit details
    Browse the repository at this point in the history
  2. Added FODC

    There might be future changes
    
    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    e184f4a View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. Made FODC act like a Subsystem:

    Ensured the FODC command requires the drivetrain subsystem by calling addRequirements(drivetrain) in the constructor.
    Added DoubleSupplier for dynamic value updates:
    Introduced DoubleSupplier for c_leftX and c_leftY to dynamically supply joystick values.
    Reverted Shuffleboard calls back to SmartDashboard:
    Replaced all Shuffleboard calls with SmartDashboard calls to avoid issues with duplicate titles and simplify the code.
    
    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    92b26e1 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Made FODC act like a Subsystem.

    Added DoubleSupplier for dynamic value updates.
    Reverted Shuffleboard calls back to SmartDashboard.
    Pushed changes to GitHub.
    Semi-successfully implemented FODC natively into the robot code.
    Simulated without issues; testing on the robot is pending but expected to work on the first try.
    Tags: testing required
    
    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    a4d7bd3 View commit details
    Browse the repository at this point in the history
  2. Modified the execute method in FODC to release the drive control syst…

    …em when the angle error is within ±5 degrees.
    
    Added logic to allow the robot to move freely in all directions like a swerve drive when the angle error is within the specified range.
    Updated SmartDashboard to display relevant angle and error values.
    Ensured the drivetrain control logic continues if the angle error is outside the specified range.
    
    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    a113389 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Implement FODC command with angle snapping and filtered control logic

    - Added target angle calculation based on joystick input
    - Integrated FODCSubsystem for filtered angle and angular velocity
    - Applied rotational correction using PID based on angle error
    - Enabled dynamic speed adjustment based on performance metrics
    - Updated SmartDashboard with filtered values and control outputs
    
    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    e063ad8 View commit details
    Browse the repository at this point in the history
  2. This is an Experiment

    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    17036e9 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Modified isFinished Method:

    Changed isFinished to always return false to ensure the command runs indefinitely.
    Added Shuffleboard Integration:
    Added a ShuffleboardTab to display various parameters.
    Added parameters to the Shuffleboard tab in the initialize method.
    Updated parameters in the execute method.
    Dynamic Speed Multiplier:
    Added a method adjustSpeedMultiplierBasedOnPerformance to dynamically adjust the speed multiplier based on performance metrics.
    Used this method in the execute method to adjust the speed multiplier.
    Refactored Constructor:
    Updated the constructor to initialize the ShuffleboardTab.
    Refactored execute Method:
    Added logic to update Shuffleboard values.
    Added logic to adjust the speed multiplier dynamically.
    Removed Kalman Filter Control:
    The Kalman filter no longer influences how the robot moves but still runs in the background.
    Remapped Robot Movement:
    Remapped how the robot moves with a bunch of speed shifters.
    
    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    5281afb View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Modified isFinished Method:

    Changed isFinished to always return false to ensure the command runs indefinitely.
    Added Shuffleboard Integration:
    Added a ShuffleboardTab to display various parameters.
    Added parameters to the Shuffleboard tab in the initialize method.
    Updated parameters in the execute method.
    Dynamic Speed Multiplier:
    Added a method adjustSpeedMultiplierBasedOnPerformance to dynamically adjust the speed multiplier based on performance metrics.
    Used this method in the execute method to adjust the speed multiplier.
    Refactored Constructor:
    Updated the constructor to initialize the ShuffleboardTab.
    Refactored execute Method:
    Added logic to update Shuffleboard values.
    Added logic to adjust the speed multiplier dynamically.
    Removed Kalman Filter Control:
    The Kalman filter no longer influences how the robot moves but still runs in the background.
    Remapped Robot Movement:
    Remapped how the robot moves with a bunch of speed shifters.
    
    Signed-off-by: RITESH RAJ AS <riteshrajas.arulselvan@gmail.com>
    riteshrajas committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    2b63051 View commit details
    Browse the repository at this point in the history