11 lines
355 B
Python
11 lines
355 B
Python
import MotorControl.motorService_pb2 as motorService_pb2
|
|
import MotorControl.motorService_pb2_grpc as motorService_pb2_grpc
|
|
|
|
from MotorControl.gpiozero.motor_session import Motor
|
|
|
|
class MotorServer(motorService_pb2_grpc.CarControlServicer):
|
|
def __init__(self):
|
|
self.motor = Motor()
|
|
|
|
def ThrottleRequestRPC(self, request, context):
|
|
|