1. 称重单位改成kg。

main
baocm 8 months ago
parent 6b0cf0c025
commit c142bad42d

@ -253,13 +253,13 @@ void PublisherApp::run(std::shared_ptr<MsgHandler> handler)
if (detector.isStable()) if (detector.isStable())
{ {
info.WeightOK() = true; info.WeightOK() = true;
info.Value() = weight/1000; info.Value() = weight;
info.StableValue() = weight/1000; info.StableValue() = weight;
} }
else else
{ {
info.WeightOK() = false; info.WeightOK() = false;
info.Value() = weight/1000; info.Value() = weight;
info.StableValue() = 0; info.StableValue() = 0;
} }

Loading…
Cancel
Save