Class CharacterizeMath.Fit

java.lang.Object
com.crossbotics.ftchelper.finders.CharacterizeMath.Fit
Enclosing class:
CharacterizeMath

public static final class CharacterizeMath.Fit extends Object
One fit. NaN where a number could not be found.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    Power to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).
    final double
    Power to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).
    final double
    Power to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).
    final double
    Power to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).
    final double
    How well the formula matches the log: 1 = perfectly, below 0.9 = be careful.
    final int
    How many moments of the log were used.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Seconds to reach about 63% of a new speed (kA / kV): how quickly it speeds up.
    boolean
    ok()
    True when the fit can be used: a speed number was found and it matches the log well enough.
    double
    Top speed per unit of power, counts per second (what the simulator calls maxTicksPerSec).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • kS

      public final double kS
      Power to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).
    • kV

      public final double kV
      Power to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).
    • kA

      public final double kA
      Power to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).
    • kG

      public final double kG
      Power to start moving (kS), per speed (kV), per acceleration (kA), to hold against gravity (kG).
    • r2

      public final double r2
      How well the formula matches the log: 1 = perfectly, below 0.9 = be careful.
    • samples

      public final int samples
      How 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.