Skip to content

Commit

Permalink
Dev/subsystem timer (#36)
Browse files Browse the repository at this point in the history
* added subsystem timer
  • Loading branch information
BBScholar authored Feb 12, 2019
1 parent dfb382e commit bfcf770
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies {
}

group = 'org.team5499'
version = '2.6.1'
version = '2.6.2'

task sourcesJar(type: Jar) {
from sourceSets.main.allJava
Expand Down
11 changes: 10 additions & 1 deletion src/main/kotlin/org/team5499/monkeyLib/Subsystem.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
package org.team5499.monkeyLib

abstract class Subsystem {
import org.team5499.monkeyLib.util.time.ITimer
import org.team5499.monkeyLib.util.time.WPITimer

abstract class Subsystem(timer: ITimer = WPITimer()) {

protected val timer: ITimer

init {
this.timer = timer
}

abstract fun update()

Expand Down

0 comments on commit bfcf770

Please sign in to comment.