Skip to content

Commit

Permalink
gyroChange
Browse files Browse the repository at this point in the history
Change initial value from 0.0 to None
  • Loading branch information
dmaccarthy committed Oct 6, 2023
1 parent 095990f commit a332d9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sc8pr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with "sc8pr". If not, see <http://www.gnu.org/licenses/>.


version = 3, 0, 3
version = 3, 0, "dev4"
print("sc8pr {}.{}.{}: https://dmaccarthy.github.io/sc8pr".format(*version))

import sys, struct
Expand Down
4 changes: 2 additions & 2 deletions sc8pr/robot/arena.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2015-2021 D.G. MacCarthy <http://dmaccarthy.github.io>
# Copyright 2015-2023 D.G. MacCarthy <http://dmaccarthy.github.io>
#
# This file is part of "sc8pr".
#
Expand Down Expand Up @@ -34,7 +34,7 @@ def __init__(self, colors=None):
self.gyroSample()

def gyroSample(self, t=None):
self.gyroChange = 0.0
self.gyroChange = None # 0.0
self._gyro_data = []
self._gyro_sample = t if t is None else round(self.sketch.frameRate * t)

Expand Down

0 comments on commit a332d9b

Please sign in to comment.