Commit fa176eaf authored by Guillaume François's avatar Guillaume François
Browse files

Sensor in volts

parent 6a3ea813
from math import pi
class Sensors:
def __init__(self):
self.t = None
......@@ -6,5 +9,5 @@ class Sensors:
def sense(self, t, speed_l, speed_r):
self.t = t
self.speed_l = speed_l
self.speed_r = speed_r
self.speed_l = speed_l * 0.1047 * 60 / (2 * pi) # The sensor returns a voltage
self.speed_r = speed_r * 0.1047 * 60 / (2 * pi) # 0.1047 V/rpm
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment