mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-21 06:31:40 +00:00
Updated YAGSL to next-gen
This commit is contained in:
36
swervelib/parser/json/MotorConfigInt.java
Normal file
36
swervelib/parser/json/MotorConfigInt.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package swervelib.parser.json;
|
||||
|
||||
/**
|
||||
* Used to store ints for motor configuration.
|
||||
*/
|
||||
public class MotorConfigInt
|
||||
{
|
||||
|
||||
/**
|
||||
* Drive motor.
|
||||
*/
|
||||
public int drive;
|
||||
/**
|
||||
* Angle motor.
|
||||
*/
|
||||
public int angle;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
public MotorConfigInt()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Default constructor with values.
|
||||
*
|
||||
* @param drive Drive data.
|
||||
* @param angle Angle data.
|
||||
*/
|
||||
public MotorConfigInt(int drive, int angle)
|
||||
{
|
||||
this.angle = angle;
|
||||
this.drive = drive;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user