public class AccelRegression
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion although it's standard to apply constant/step voltage/power.
Modifier and Type | Class and Description |
---|---|
static class |
AccelRegression.AccelResult
Feedforward parameter estimates from the ramp regression and additional summary statistics
|
Constructor and Description |
---|
AccelRegression(java.util.List<java.lang.Double> timeSamples,
java.util.List<java.lang.Double> positionSamples,
java.util.List<java.lang.Double> powerSamples)
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion
although it's standard to apply constant/step voltage/power.
|
AccelRegression(java.util.List<java.lang.Double> timeSamples,
java.util.List<java.lang.Double> positionSamples)
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion
although it's standard to apply constant/step voltage/power.
|
AccelRegression(java.util.List<java.lang.Double> timeSamples)
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion
although it's standard to apply constant/step voltage/power.
|
AccelRegression()
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion
although it's standard to apply constant/step voltage/power.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double time,
double position,
double power)
Add a sample to the regression.
|
AccelRegression.AccelResult |
fit(double kV,
double kStatic)
Fit kA from the accel test data.
|
void |
save(java.io.File file)
Save the data to a CSV file for debugging or additional analysis.
|
@JvmOverloads public AccelRegression(@NotNull java.util.List<java.lang.Double> timeSamples, @NotNull java.util.List<java.lang.Double> positionSamples, @NotNull java.util.List<java.lang.Double> powerSamples)
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion although it's standard to apply constant/step voltage/power.
timeSamples
- time samplespositionSamples
- position samplespowerSamples
- power (scaled voltage) samples@JvmOverloads public AccelRegression(@NotNull java.util.List<java.lang.Double> timeSamples, @NotNull java.util.List<java.lang.Double> positionSamples)
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion although it's standard to apply constant/step voltage/power.
timeSamples
- time samplespositionSamples
- position samples@JvmOverloads public AccelRegression(@NotNull java.util.List<java.lang.Double> timeSamples)
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion although it's standard to apply constant/step voltage/power.
timeSamples
- time samples@JvmOverloads public AccelRegression()
Container for acceleration feedforward regression data. This data can be gathered through pretty much any motion although it's standard to apply constant/step voltage/power.
public void add(double time, double position, double power)
Add a sample to the regression.
@NotNull public AccelRegression.AccelResult fit(double kV, double kStatic)
Fit kA from the accel test data.
public void save(@NotNull java.io.File file)
Save the data to a CSV file for debugging or additional analysis.