mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Upgrading to 2025.1.0
This commit is contained in:
@@ -22,7 +22,8 @@ public class ConversionFactorsJson
|
||||
*/
|
||||
public boolean isDriveEmpty()
|
||||
{
|
||||
return drive.factor == 0 && drive.diameter == 0 && drive.gearRatio == 0;
|
||||
drive.calculate();
|
||||
return drive.factor == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -32,6 +33,18 @@ public class ConversionFactorsJson
|
||||
*/
|
||||
public boolean isAngleEmpty()
|
||||
{
|
||||
return angle.factor == 0 && angle.gearRatio == 0;
|
||||
angle.calculate();
|
||||
return angle.factor == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the conversion factor can be found.
|
||||
*
|
||||
* @return If the conversion factors can be found.
|
||||
*/
|
||||
public boolean works()
|
||||
{
|
||||
return (angle.factor != 0 && drive.factor != 0) ||
|
||||
((drive.gearRatio != 0 && drive.diameter != 0)) && (angle.gearRatio != 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user