Package frc.team4373.swerve
Class WheelVector
- java.lang.Object
-
- frc.team4373.swerve.WheelVector
-
public class WheelVector extends java.lang.ObjectA programmatic representation of a vector that wheels can be set to follow.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWheelVector.VectorSetA set of four vectors corresponding to the four wheels of the bot.
-
Field Summary
Fields Modifier and Type Field Description doubleangleThe angle (i.e., direction) of the vector in degrees.doublespeedThe speed (i.e., magnitude) of the vector (in the range [-1, 1]).static WheelVectorZEROThe vector with 0 for both components.
-
Constructor Summary
Constructors Constructor Description WheelVector(double speed, double angle)Constructs a new WheelVector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(WheelVector vector)java.lang.StringtoString()
-
-
-
Field Detail
-
ZERO
public static final WheelVector ZERO
The vector with 0 for both components.
-
speed
public final double speed
The speed (i.e., magnitude) of the vector (in the range [-1, 1]).
-
angle
public final double angle
The angle (i.e., direction) of the vector in degrees.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(WheelVector vector)
-
-