Add motor control with grpc

This commit is contained in:
Piv
2019-08-11 20:31:16 +09:30
parent ff98ed58d4
commit eee4e6d4de
6 changed files with 473 additions and 14 deletions

View File

@@ -0,0 +1,11 @@
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):