We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e50fbe commit 8179ad9Copy full SHA for 8179ad9
test/motors.py
@@ -3,7 +3,7 @@
3
import time
4
import unittest
5
6
-from buildhat import Motor
+from buildhat import Hat, Motor
7
from buildhat.exc import DeviceError, MotorError
8
9
@@ -121,6 +121,15 @@ def test_continuous_position(self):
121
while time.time() < t:
122
m.run_to_position(0)
123
124
+ def test_continuous_feedback(self):
125
+ """Test feedback of motor for 30mins"""
126
+ Hat(debug=True)
127
+ t = time.time() + (60 * 30)
128
+ m = Motor('A')
129
+ m.start(40)
130
+ while time.time() < t:
131
+ _ = (m.get_speed(), m.get_position(), m.get_aposition())
132
+
133
134
if __name__ == '__main__':
135
unittest.main()
0 commit comments