tests/motors/loop_time: Log control data.
This was only logging servo data, but control data
helps us debug the reference trajectory.
@@ -11,6 +11,7 @@ print(version)
motor = Motor(Port.A)
DURATION = 4000
motor.log.start(DURATION)
+motor.control.log.start(DURATION)
# Move the motor with a speed in a sine pattern.
watch = StopWatch()
@@ -29,4 +30,5 @@ motor.stop()
# Transfer data logs.
print("Transferring data...")
motor.log.save("servo.txt")
+motor.control.log.save("control.txt")
print("Done")
