sensors.py 455 B

12345678910111213141516171819202122232425262728293031
  1. from connection import ArduinoSlave
  2. conn = ArduinoSlave()
  3. class AcusticSensor:
  4. def __init__(self):
  5. pass
  6. def start(self):
  7. if not conn.isConnected():
  8. conn.open()
  9. def calibrate(self, x, y):
  10. pass
  11. def read(self):
  12. return (0, 0)
  13. class MagneticSensor:
  14. def __init__(self):
  15. pass
  16. def start(self):
  17. if not conn.isConnected():
  18. conn.open()
  19. def calibrate(self, x, y):
  20. pass
  21. def read(self):
  22. return (0, 0)