-
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.
Finished DrivetrainConstructor, added preferences
- Loading branch information
1 parent
da6b702
commit 832fd3e
Showing
4 changed files
with
106 additions
and
30 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
122 changes: 97 additions & 25 deletions
122
src/y2025/cpp/subsystems/hardware/DrivetrainConstructor.cc
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
9 changes: 6 additions & 3 deletions
9
src/y2025/include/subsystems/hardware/DrivetrainConstructor.h
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#pragma once | ||
|
||
#include "frc846/base/Loggable.h" | ||
#include "frc846/robot/swerve/drivetrain.h" | ||
|
||
/* | ||
DrivetrainConstructor | ||
A class providing static methods to aid construction of a DrivetrainSubsystem | ||
A class providing methods to aid construction of a DrivetrainSubsystem | ||
object. | ||
*/ | ||
class DrivetrainConstructor { | ||
class DrivetrainConstructor : public frc846::base::Loggable { | ||
public: | ||
static frc846::robot::swerve::DrivetrainConfigs getDrivetrainConfigs(); | ||
DrivetrainConstructor(); | ||
|
||
frc846::robot::swerve::DrivetrainConfigs getDrivetrainConfigs(); | ||
}; |
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