Index: leahi_dialin/td/modules/blood_flow.py =================================================================== diff -u -r43fec7787f9a4115d19deeb5cbc1d7bbf23134fe -r23d97164899d37cb70f73beda28e790996e18abc --- leahi_dialin/td/modules/blood_flow.py (.../blood_flow.py) (revision 43fec7787f9a4115d19deeb5cbc1d7bbf23134fe) +++ leahi_dialin/td/modules/blood_flow.py (.../blood_flow.py) (revision 23d97164899d37cb70f73beda28e790996e18abc) @@ -54,7 +54,8 @@ TDBloodFlowMotorAttributes.SET_RPM.name: 0.0, TDBloodFlowMotorAttributes.ROTOR_COUNT.name: 0, TDBloodFlowMotorAttributes.PRES_BLOOD_FLOW_RATE.name: 0, - TDBloodFlowMotorAttributes.ROTOR_HALL_STATE.name: 0 + TDBloodFlowMotorAttributes.ROTOR_HALL_STATE.name: 0, + TDBloodFlowMotorAttributes.MEASURED_BLOOD_PUMP_TORQUE : 0.0 } @publish(["msg_id_td_blood_pump_data", "h4_motor", "td_blood_flow_timestamp"]) @@ -85,6 +86,8 @@ message['message'][MsgFieldPositions.START_POS_FIELD_8:MsgFieldPositions.END_POS_FIELD_8]))[0] self.h4_motor[TDBloodFlowMotorAttributes.ROTOR_HALL_STATE.name] = struct.unpack('I', bytearray( message['message'][MsgFieldPositions.START_POS_FIELD_9:MsgFieldPositions.END_POS_FIELD_9]))[0] + self.h4_motor[TDBloodFlowMotorAttributes.MEASURED_BLOOD_PUMP_TORQUE.name] = struct.unpack('f', bytearray( + message['message'][MsgFieldPositions.START_POS_FIELD_10:MsgFieldPositions.END_POS_FIELD_10]))[0] self.td_blood_flow_timestamp = timestamp