Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

Commit

Permalink
Copy edit
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraclay committed Jan 6, 2017
1 parent e4d1d53 commit 4b7dcb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lesson-2/code/wind_calc.py
Expand Up @@ -2,11 +2,11 @@
from time import sleep
import math

count = 0 # Counts how many half rotations
count = 0 # Counts how many half-rotations
radius_cm = 9.0 # Radius of your anemometer
interval = 5 # How often (secs) to report speed

# Every half rotation, add 1 to count
# Every half-rotation, add 1 to count
def spin():
global count
count = count + 1
Expand All @@ -30,7 +30,7 @@ def calc_speed(time_sec):
wind_speed_sensor.when_activated = spin


# Loop to measure wind speed and report at 5 second intervals
# Loop to measure wind speed and report at 5-second intervals
while True:
count = 0
sleep(interval)
Expand Down

0 comments on commit 4b7dcb2

Please sign in to comment.