Fixed imports and some things from first run.
This commit is contained in:
6
MotorControl/MotorServer.py
Normal file → Executable file
6
MotorControl/MotorServer.py
Normal file → Executable file
@@ -6,8 +6,8 @@ from concurrent import futures
|
||||
|
||||
import grpc
|
||||
|
||||
from . import motorService_pb2
|
||||
from . import motorService_pb2_grpc
|
||||
import motorService_pb2
|
||||
import motorService_pb2_grpc
|
||||
from MotorControl.gpiozero.motor_session import Motor
|
||||
|
||||
servo_pin = 18
|
||||
@@ -60,4 +60,4 @@ class MotorServicer(motorService_pb2_grpc.CarControlServicer):
|
||||
server.start()
|
||||
|
||||
servicer = MotorServicer()
|
||||
servicer.start_server()
|
||||
servicer.start_server()
|
||||
|
||||
Reference in New Issue
Block a user