added comment
This commit is contained in:
parent
ea1e75eb22
commit
1dd311f74d
@ -209,6 +209,10 @@ class Vehicle:
|
|||||||
self._daf_mb.send(pickle.dumps(self.daf))
|
self._daf_mb.send(pickle.dumps(self.daf))
|
||||||
|
|
||||||
def new_velocity(self, response: bytes):
|
def new_velocity(self, response: bytes):
|
||||||
|
"""
|
||||||
|
Will be invoked if new target velocity message received
|
||||||
|
:param response: pickled TargetVelocity object
|
||||||
|
"""
|
||||||
response: TargetVelocity = pickle.loads(response)
|
response: TargetVelocity = pickle.loads(response)
|
||||||
velocity = response.target_velocity
|
velocity = response.target_velocity
|
||||||
print('Received new velocity {}'.format(velocity))
|
print('Received new velocity {}'.format(velocity))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user