Skip to content

Commit

Permalink
Move automation to .automation
Browse files Browse the repository at this point in the history
  • Loading branch information
bhall-ctre committed Oct 31, 2024
1 parent 41ecc8a commit 102684d
Show file tree
Hide file tree
Showing 28 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions cpp/Simulation/src/main/cpp/Robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void Robot::SimulationPeriodic()
rightSim.SetReverseLimit(joystick.GetRightTriggerAxis() > 0.5);
}

units::meter_t DriveSubsystem::rotationsToMeters(units::turn_t rotations)
units::meter_t Robot::rotationsToMeters(units::turn_t rotations)
{
/* Every radian of rotation, the wheel travels this many inches */
constexpr auto wheelDistancePerRad = kWheelRadiusInches / 1_rad;
Expand All @@ -170,7 +170,7 @@ units::meter_t DriveSubsystem::rotationsToMeters(units::turn_t rotations)
return gearedRotations * wheelDistancePerRad;
}

units::turn_t DriveSubsystem::metersToRotations(units::meter_t meters)
units::turn_t Robot::metersToRotations(units::meter_t meters)
{
/* Every radian of rotation, the wheel travels this many inches */
constexpr auto wheelDistancePerRad = kWheelRadiusInches / 1_rad;
Expand All @@ -180,7 +180,7 @@ units::turn_t DriveSubsystem::metersToRotations(units::meter_t meters)
return wheelRadians * kGearRatio;
}

units::meters_per_second_t DriveSubsystem::rotationsToMetersVel(units::turns_per_second_t rotations)
units::meters_per_second_t Robot::rotationsToMetersVel(units::turns_per_second_t rotations)
{
/* Every radian of rotation, the wheel travels this many inches */
constexpr auto wheelDistancePerRad = kWheelRadiusInches / 1_rad;
Expand All @@ -190,7 +190,7 @@ units::meters_per_second_t DriveSubsystem::rotationsToMetersVel(units::turns_per
return gearedRotations * wheelDistancePerRad;
}

units::turns_per_second_t DriveSubsystem::metersToRotationsVel(units::meters_per_second_t meters)
units::turns_per_second_t Robot::metersToRotationsVel(units::meters_per_second_t meters)
{
/* Every radian of rotation, the wheel travels this many inches */
constexpr auto wheelDistancePerRad = kWheelRadiusInches / 1_rad;
Expand Down
6 changes: 3 additions & 3 deletions update_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

# Mapping of templates to target directories
TEMPLATE_DIRS: dict[str, str] = {
"./automation/java_template/" : "./java",
"./automation/cpp_template/" : "./cpp",
"./automation/python_template/": "./python"
"./.automation/java_template/" : "./java",
"./.automation/cpp_template/" : "./cpp",
"./.automation/python_template/": "./python"
}

# List of globs to ignore for deletion
Expand Down

0 comments on commit 102684d

Please sign in to comment.