TeamCode / org.firstinspires.ftc.teamcode.sensing / MineralKnocker

MineralKnocker

open class MineralKnocker
Deprecated: Deprecated in Java

This helper class was intended to assist in the creation of mineral knocking op modes. Since every use case is different, this class has been deprecated. See MineralKnockerOpMode for an example of how it was used. Do not use this class.

Constructors

<init>

MineralKnocker()

This helper class was intended to assist in the creation of mineral knocking op modes. Since every use case is different, this class has been deprecated. See MineralKnockerOpMode for an example of how it was used. Do not use this class.

Properties

goldMeasurements

var goldMeasurements: ArrayList<Double>

measurementModifier

var measurementModifier: Double

mineralDetection

var mineralDetection: MineralDetection

rollingAverage

var rollingAverage: Int

turnAmountRate

var turnAmountRate: Double

Functions

addMeasurement

open fun addMeasurement(measurement: Double): Unit

averageMeasurements

open fun averageMeasurements(): Double

clearMeasurements

open fun clearMeasurements(): Unit

countMeasurements

open fun countMeasurements(): Int

getTurnAmount

open fun getTurnAmount(): Double

measure

open fun measure(): Unit