From 4ff2843305ea605c750e12d728b88d5bc0529eb4 Mon Sep 17 00:00:00 2001 From: nithya Date: Fri, 23 Mar 2018 18:20:29 -0700 Subject: [PATCH] logger implemented --- .../eighteen/drivetrain/DrivetrainComponent.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/src/main/scala/com/lynbrookrobotics/eighteen/drivetrain/DrivetrainComponent.scala b/shared/src/main/scala/com/lynbrookrobotics/eighteen/drivetrain/DrivetrainComponent.scala index 7a206ab..aa78837 100644 --- a/shared/src/main/scala/com/lynbrookrobotics/eighteen/drivetrain/DrivetrainComponent.scala +++ b/shared/src/main/scala/com/lynbrookrobotics/eighteen/drivetrain/DrivetrainComponent.scala @@ -13,7 +13,7 @@ class DrivetrainComponent(coreTicks: Stream[Unit])( implicit hardware: DrivetrainHardware, props: Signal[DrivetrainProperties], clock: Clock -) extends Component[TwoSided[OffloadedSignal]] { +) extends Component[TwoSided[OffloadedSignal]] with TimingLoggingComponent{ override def defaultController: Stream[TwoSided[OffloadedSignal]] = { import hardware.driverHardware.station.{isEnabled, isOperatorControl} @@ -52,4 +52,5 @@ class DrivetrainComponent(coreTicks: Stream[Unit])( hardware.left.applyCommand(signal.left) hardware.right.applyCommand(signal.right) } + }