Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix: use semantic can package name
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp committed Jan 24, 2024
1 parent 18dd87d commit 7818156
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
4 changes: 3 additions & 1 deletion src/main/java/com/frcteam3636/frc2024/CAN.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.frcteam3636.frc2024.can
package com.frcteam3636.frc2024

import com.ctre.phoenix6.hardware.TalonFX
import com.revrobotics.CANSparkFlex
Expand All @@ -12,8 +12,10 @@ enum class REVMotorControllerId(val num: Int) {
BackLeftTurningMotor(2),
BackRightTurningMotor(3),
FrontRightTurningMotor(4),
// fixme: these can ids should probably be updated in hardware because 15 and 7 are pretty random
LeftShooterFlywheel(15),
RightShooterFlywheel(7),
// todo: the following `3x` CAN ids are placeholders
OverTheBumperIntakeArm(31),
OverTheBumperIntakeFeed(32),
UnderTheBumperIntakeRoller(33),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.frcteam3636.frc2024.subsystems.climber

import com.frcteam3636.frc2024.can.CANSparkMax
import com.frcteam3636.frc2024.can.REVMotorControllerId
import com.frcteam3636.frc2024.CANSparkMax
import com.frcteam3636.frc2024.REVMotorControllerId
import com.revrobotics.CANSparkLowLevel
import com.revrobotics.SparkAbsoluteEncoder
import edu.wpi.first.math.geometry.Rotation2d
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.frcteam3636.frc2024.subsystems.drivetrain

import com.frcteam3636.frc2024.can.CTREMotorControllerId
import com.frcteam3636.frc2024.can.REVMotorControllerId
import com.frcteam3636.frc2024.CTREMotorControllerId
import com.frcteam3636.frc2024.REVMotorControllerId
import com.frcteam3636.frc2024.utils.swerve.PerCorner
import com.frcteam3636.frc2024.utils.swerve.cornerStatesToChassisSpeeds
import com.frcteam3636.frc2024.utils.swerve.toCornerSwerveModuleStates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ package com.frcteam3636.frc2024.subsystems.drivetrain
import com.ctre.phoenix6.configs.CurrentLimitsConfigs
import com.ctre.phoenix6.configs.SlotConfigs
import com.ctre.phoenix6.controls.VelocityVoltage
import com.frcteam3636.frc2024.Robot
import com.frcteam3636.frc2024.can.CANSparkMax
import com.frcteam3636.frc2024.can.CTREMotorControllerId
import com.frcteam3636.frc2024.can.REVMotorControllerId
import com.frcteam3636.frc2024.can.TalonFX
import com.frcteam3636.frc2024.*
import com.frcteam3636.frc2024.utils.math.*
import com.revrobotics.CANSparkBase
import com.revrobotics.CANSparkLowLevel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.frcteam3636.frc2024.subsystems.intake

import com.frcteam3636.frc2024.CANSparkFlex
import com.frcteam3636.frc2024.CANSparkMax
import com.frcteam3636.frc2024.REVMotorControllerId
import com.frcteam3636.frc2024.Robot
import com.frcteam3636.frc2024.can.CANSparkFlex
import com.frcteam3636.frc2024.can.CANSparkMax
import com.frcteam3636.frc2024.can.REVMotorControllerId
import com.revrobotics.CANSparkLowLevel
import edu.wpi.first.math.geometry.Rotation2d
import edu.wpi.first.math.system.plant.DCMotor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.frcteam3636.frc2024.subsystems.shooter

import com.frcteam3636.frc2024.can.CANSparkMax
import com.frcteam3636.frc2024.can.REVMotorControllerId
import com.frcteam3636.frc2024.CANSparkMax
import com.frcteam3636.frc2024.REVMotorControllerId
import com.revrobotics.CANSparkLowLevel
import edu.wpi.first.math.geometry.Rotation2d
import edu.wpi.first.math.util.Units
Expand Down

0 comments on commit 7818156

Please sign in to comment.