fix: bad protobuf attribute
This commit is contained in:
parent
7393b30325
commit
b248a34e2c
@ -67,7 +67,7 @@ def init_mqtt_steering_client(steering_controller: actuator.PWMSteering, broker_
|
|||||||
try:
|
try:
|
||||||
steering_msg = SteeringMessage()
|
steering_msg = SteeringMessage()
|
||||||
steering_msg.ParseFromString(msg.payload)
|
steering_msg.ParseFromString(msg.payload)
|
||||||
steering_controller.run_threaded(steering_msg.Steering)
|
steering_controller.run_threaded(steering_msg.steering)
|
||||||
except:
|
except:
|
||||||
logger.exception("unexpected error: unable to process steering, skip message")
|
logger.exception("unexpected error: unable to process steering, skip message")
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ def init_mqtt_throttle_client(throttle_controller: actuator.PWMThrottle, broker_
|
|||||||
try:
|
try:
|
||||||
throttle_msg = ThrottleMessage()
|
throttle_msg = ThrottleMessage()
|
||||||
throttle_msg.ParseFromString(msg.payload)
|
throttle_msg.ParseFromString(msg.payload)
|
||||||
throttle_controller.run_threaded(throttle_msg.Throttle)
|
throttle_controller.run_threaded(throttle_msg.throttle)
|
||||||
except:
|
except:
|
||||||
logger.exception("unexpected error: unable to process throttle, skip message")
|
logger.exception("unexpected error: unable to process throttle, skip message")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user