Interface SwerveDrivetrain.DeviceConstructor<DeviceT>

Type Parameters:
DeviceT - Type of the device to construct
Enclosing class:
SwerveDrivetrain<DriveMotorT extends CommonTalon, SteerMotorT extends CommonTalon, EncoderT extends ParentDevice>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SwerveDrivetrain.DeviceConstructor<DeviceT>
Functional interface for device constructors.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int id, CANBus canbus)
    Constructs the device.
  • Method Details

    • create

      DeviceT create(int id, CANBus canbus)
      Constructs the device.
      Parameters:
      id - Device ID
      canbus - Device CAN bus
      Returns:
      New device instance