CsvLogging

object CsvLogging : API

An API for creating, managing, and writing to logging files.

Properties

Link copied to clipboard
open val dependencies: Set<API>

Configures all APIs that must be initialized in order to use this API.

Link copied to clipboard

Returns true if init has been called for this opmode.

Link copied to clipboard
open val isLinear: Boolean = false

Defines whether this API requires features from LinearOpMode.

Functions

Link copied to clipboard
fun close()

Closes all open files.

Link copied to clipboard
fun createFile(fileName: String)

Creates new files to log to (old files are deleted after every run). File must be closed.

Link copied to clipboard
fun flush(file: String)
Link copied to clipboard
open override fun init(opMode: OpMode)

Initializes this API.

Link copied to clipboard
fun writeFile(file: String, data: DoubleArray)

Writes Array Double data to the targeted file

fun writeFile(file: String, data: Double)

Writes Double data to the targeted file