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()

Close all writers safely.

Link copied to clipboard
fun createFile(fileName: String)

Creates a new CSV file in the buffer. Does NOT touch storage yet.

Link copied to clipboard
fun flush(file: String)

Flushes the RAM buffer to storage safely. Will create writer lazily (if they cant do it, then they will abort instead of shutting down) and handle errors.

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

Initializes this API.

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

Write an array entry to RAM buffer.

fun writeFile(file: String, data: Double)

Write a double entry to RAM buffer.