[wpiutil] Remove type param from ProtobufSerializable and StructSerializable (#6122)

This commit is contained in:
Joseph Eng
2023-12-31 14:36:11 -08:00
committed by GitHub
parent c34debe012
commit 938bf45fd9
27 changed files with 32 additions and 56 deletions

View File

@@ -13,8 +13,7 @@ import edu.wpi.first.util.struct.StructSerializable;
* A helper class that computes feedforward outputs for a simple arm (modeled as a motor acting
* against the force of gravity on a beam suspended at an angle).
*/
public class ArmFeedforward
implements ProtobufSerializable<ArmFeedforward>, StructSerializable<ArmFeedforward> {
public class ArmFeedforward implements ProtobufSerializable, StructSerializable {
public final double ks;
public final double kg;
public final double kv;

View File

@@ -10,9 +10,7 @@ import edu.wpi.first.util.protobuf.ProtobufSerializable;
import edu.wpi.first.util.struct.StructSerializable;
/** Motor voltages for a differential drive. */
public class DifferentialDriveWheelVoltages
implements ProtobufSerializable<DifferentialDriveWheelVoltages>,
StructSerializable<DifferentialDriveWheelVoltages> {
public class DifferentialDriveWheelVoltages implements ProtobufSerializable, StructSerializable {
public double left;
public double right;

View File

@@ -16,8 +16,7 @@ import edu.wpi.first.util.struct.StructSerializable;
* A helper class that computes feedforward outputs for a simple elevator (modeled as a motor acting
* against the force of gravity).
*/
public class ElevatorFeedforward
implements ProtobufSerializable<ElevatorFeedforward>, StructSerializable<ElevatorFeedforward> {
public class ElevatorFeedforward implements ProtobufSerializable, StructSerializable {
public final double ks;
public final double kg;
public final double kv;