Minor changes to motor service

This commit is contained in:
Piv
2019-08-14 22:03:22 +09:30
parent 5c14acbe28
commit d14bae53f6
2 changed files with 3 additions and 1 deletions

View File

@@ -38,3 +38,5 @@ class Motor:
print("Value must be an int.") print("Value must be an int.")
return False return False
def stop(self):
self.set_throttle(0)

View File

@@ -29,5 +29,5 @@ message HeartbeatCheckResponse{
service CarControl{ service CarControl{
rpc SetThrottle(ThrottleRequest) returns (ThrottleResponse){} rpc SetThrottle(ThrottleRequest) returns (ThrottleResponse){}
rpc SetSteering(SteeringRequest) returns (SteeringResponse){} rpc SetSteering(SteeringRequest) returns (SteeringResponse){}
rpc Heartbeat(stream HeartbeatCheck) returns (HeartbeatCheckResponse){} rpc Heartbeat(HeartbeatCheck) returns (HeartbeatCheckResponse){}
} }