This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move hardware options, tidy up drivetrain constants generation
Goals before merging with feat/magicSwerve, get simulator printing turning angles, make stable (ish), comment and clean more
- Loading branch information
1 parent
69de95c
commit 3cf3d6e
Showing
4 changed files
with
86 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# There are four swerve modules that make up a drivetrain | ||
modules: | ||
frontRight: | ||
CANSteerID: 0 # Configured Never | ||
CANDriveID: 1 # Configured Never | ||
Pose: [1, 1] # Configured Never | ||
frontLeft: | ||
CANSteerID: 2 # Configured Never | ||
CANDriveID: 3 # Configured Never | ||
Pose: [-1, 1] # Configured Never | ||
rearRight: | ||
CANSteerID: 4 # Configured Never | ||
CANDriveID: 5 # Configured Never | ||
Pose: [1, -1] # Configured Never | ||
rearLeft: | ||
CANSteerID: 6 # Configured Never | ||
CANDriveID: 7 # Configured Never | ||
Pose: [-1, -1] # Configured Never | ||
|
||
# ============================ | ||
# Old stuff joe isn't touching | ||
# ============================ | ||
|
||
neo: | ||
kFreeSpeedRpm: 5676 | ||
|
||
drive: | ||
kMaxSpeedMetersPerSecond: 4.8 | ||
|
||
kDirectionSlewRate: 1.2 | ||
kMagnitudeSlewRate: 1.8 | ||
kRotationalSlewRate: 2.0 | ||
|
||
kTrackWidth: 0.6731 | ||
kWheelBase: 0.6731 | ||
|
||
# SPARK MAX CAN IDs | ||
kFrontLeftDrivingCanId: 11 | ||
kRearLeftDrivingCanId: 13 | ||
kFrontRightDrivingCanId: 15 | ||
kRearRightDrivingCanId: 17 | ||
|
||
kFrontLeftTurningCanId: 10 | ||
kRearLeftTurningCanId: 12 | ||
kFrontRightTurningCanId: 14 | ||
kRearRightTurningCanId: 16 | ||
|
||
kGyroReversed: False | ||
|
||
module: | ||
kDrivingMotorPinionTeeth: 14 | ||
|
||
kTurningEncoderInverted: True | ||
|
||
kWheelDiameterMeters: 0.0762 | ||
|
||
kDrivingMotorCurrentLimit: 50 | ||
kTurningMotorCurrentLimit: 20 |
This file was deleted.
Oops, something went wrong.