Reference Source Test
public class | source

StarterDriver

Extends:

src/drivers/motion/MotionDriverSimulator.js~EventEmitter → StarterDriver

Detects when rope is pulled out of the robot and starts counting game time.

Method Summary

Public Methods
public

Get time in seconds since match is started

public

Get time in milliseconds since match is started

public

Wait a start match signal (pulled rope, pressed key or delay)

Public Methods

public getTime(): number source

Get time in seconds since match is started

Return:

number

Seconds since match is started

public getTimeMills(): Number source

Get time in milliseconds since match is started

Return:

Number

Milliseconds since match is started

public waitStartSignal(): Promise source

Wait a start match signal (pulled rope, pressed key or delay)

Return:

Promise