Add Esp32 (serial) vehicle to pycar
This commit is contained in:
26
pycar/src/car/control/gpio/abstract_vehicle.py
Normal file
26
pycar/src/car/control/gpio/abstract_vehicle.py
Normal 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
|
||||
Reference in New Issue
Block a user