createPath

fun createPath(telemetries: List<<Error class: unknown class>>, index: Int, path: Path, oldestTime: Int, timeRange: Int, width: Float, timeThreshold: Long, calculateY: (Int) -> Float): Int

Creates a Path that could be used to draw a line from the index to the end of telemetries or the last point before a time separation between Telemetrys.

Return

the current index after iterating

Parameters

telemetries

data used to create the Path

index

current place in the List

path

Path that will be used to draw

timeRange

The time range for the data set

width
timeThreshold

to determine significant breaks in time between Telemetrys

calculateY

(index) ->y coordinate