Skip to content

Commit

Permalink
added model for advantage scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeycorn committed Feb 12, 2025
1 parent 79264f3 commit 8cd95ef
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions assets/ascopeModels/AlphaModel/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "alpha",
"sourceUrl": "https://docs.google.com/presentation/d/1AAu2zqNKTj3l3szka6KpoWljeriAGVZFnlKDJlKDmbE/edit?usp=sharing",
"disableSimplification": true
}
Binary file added assets/ascopeModels/AlphaModel/model.glb
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import com.ctre.phoenix6.signals.NeutralModeValue;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.util.Units;
import org.frc6423.frc2025.util.motorUtil.TalonFXUtil;
import org.frc6423.frc2025.util.motorUtil.CTReUtil;
import org.frc6423.frc2025.util.swerveUtil.ModuleConfig;

public class ModuleIOTalonFX implements ModuleIO {
Expand Down Expand Up @@ -53,8 +53,8 @@ public ModuleIOTalonFX(ModuleConfig config) {
m_pivotConfig = config.kPivotConfigTalonFX;
m_driveConfig = config.kDriveConfigTalonFX;

TalonFXUtil.registerMotor(m_pivotMotor);
TalonFXUtil.registerMotor(m_driveMotor);
CTReUtil.registerMotor(m_pivotMotor);
CTReUtil.registerMotor(m_driveMotor);

m_pivotCANcoder = new CANcoder(config.kPivotABSID);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@

package org.frc6423.frc2025.util.motorUtil;

import com.ctre.phoenix6.CANBus;
import com.ctre.phoenix6.Orchestra;
import com.ctre.phoenix6.hardware.TalonFX;
import java.util.Arrays;
import java.util.Random;

/** A class that's responsible for configuring all talons to do things */
public class TalonFXUtil {
/** A class that's responsible for configuring all CTRe devices */
public class CTReUtil {
public static CANBus CANchan = new CANBus("CAN-chan"); // primary can bus :3

private static final Orchestra robotOrchestra = new Orchestra();
private static TalonFX[] globalTalonArray;

Expand Down

0 comments on commit 8cd95ef

Please sign in to comment.