create Path
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
time Range
The time range for the data set
width
of the DrawContext
time Threshold
to determine significant breaks in time between Telemetrys
calculate Y
(index
) ->y
coordinate