frc-3009-2024/swerve_drive_params.py

9 lines
360 B
Python

from motorParams import Motorparams
from encoderParams import EncoderParams
class SwerveDriveParams(object):
def __init__(self, driveMotorParams: Motorparams, angleMotorParams: Motorparams, encoderParams: EncoderParams):
self._angle_encoder = encoderParams
self._drive_motor = driveMotorParams
self._angle_motor = angleMotorParams