Class CharacterizeMath.Fit
java.lang.Object
com.crossbotics.ftchelper.finders.CharacterizeMath.Fit
- Enclosing class:
CharacterizeMath
One fit. NaN where a number could not be found.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublePower to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).final doublePower to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).final doublePower to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).final doublePower to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).final doubleHow well the formula matches the log: 1 = perfectly, below 0.9 = be careful.final intHow many moments of the log were used. -
Method Summary
Modifier and TypeMethodDescriptiondoubleaccelSec()Seconds to reach about 63% of a new speed (kA / kV): how quickly it speeds up.booleanok()True when the fit can be used: a speed number was found and it matches the log well enough.doubleTop speed per unit of power, counts per second (what the simulator calls maxTicksPerSec).
-
Field Details
-
kS
public final double kSPower to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG). -
kV
public final double kVPower to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG). -
kA
public final double kAPower to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG). -
kG
public final double kGPower to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG). -
r2
public final double r2How well the formula matches the log: 1 = perfectly, below 0.9 = be careful. -
samples
public final int samplesHow many moments of the log were used.
-
-
Method Details
-
ticksPerSecPerPower
public double ticksPerSecPerPower()Top speed per unit of power, counts per second (what the simulator calls maxTicksPerSec). -
accelSec
public double accelSec()Seconds to reach about 63% of a new speed (kA / kV): how quickly it speeds up. -
ok
public boolean ok()True when the fit can be used: a speed number was found and it matches the log well enough.
-