Add Esp32 (serial) vehicle to pycar

This commit is contained in:
Piv
2020-09-12 15:49:01 +09:30
parent fc3607316d
commit c97df7bbaa
8 changed files with 99 additions and 46 deletions

View File

@@ -0,0 +1,26 @@
from abc import ABC, abstractmethod, abstractproperty
class AbstractVehicle(ABC):
@abstractmethod
@property
def throttle(self):
pass
@abstractmethod
@throttle.setter
def throttle(self):
pass
@abstractmethod
@property
def steering(self):
pass
@abstractmethod
@steering.setter
def throttle(self):
pass
def stop(self):
pass