Skip to content

Commit 69e7bde

Browse files
authored
MoveDifferential: use gyro for better accuracy (#705)
1 parent c4cbe75 commit 69e7bde

File tree

10 files changed

+272
-144
lines changed

10 files changed

+272
-144
lines changed

debian/changelog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ python-ev3dev2 (2.1.0) UNRELEASED; urgency=medium
33
[Daniel Walton]
44
* RPyC update docs and make it easier to use
55
* use double backticks consistently in docstrings
6+
* MoveDifferential use gyro for better accuracy. Make MoveTank and
7+
MoveDifferential "turn" APIs more consistent.
68

79
[Matěj Volf]
810
* LED animation fix duration None
@@ -12,7 +14,7 @@ python-ev3dev2 (2.1.0) UNRELEASED; urgency=medium
1214
* Add "value_secs" and "is_elapsed_*" methods to StopWatch
1315
* Rename "value_hms" to "hms_str". New "value_hms" returns original tuple.
1416
* Fix bug in Button.process() on Micropython
15-
17+
1618
[Nithin Shenoy]
1719
* Add Gyro-based driving support to MoveTank
1820

ev3dev2/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ def library_load_warning_message(library_name, dependent_class):
142142
class DeviceNotFound(Exception):
143143
pass
144144

145+
class DeviceNotDefined(Exception):
146+
pass
147+
148+
class ThreadNotRunning(Exception):
149+
pass
150+
145151
# -----------------------------------------------------------------------------
146152
# Define the base class from which all other ev3dev classes are defined.
147153

@@ -214,7 +220,7 @@ def __str__(self):
214220
return "%s(%s)" % (self.__class__.__name__, self.kwargs.get('address'))
215221
else:
216222
return self.__class__.__name__
217-
223+
218224
def __repr__(self):
219225
return self.__str__()
220226

0 commit comments

Comments
 (0)