CHROMIUMOS: Fix string formatting
String formatting is C-style instead of python-style which truncates
because python includes the decimal and characters afterward.
BUG=chromium-os:34412
TEST=Use monRS232CCoordinateDataSettings() in a robot control program.
Change-Id: I03b42dbea8cd19164ce744b88e21193333575a36
Signed-off-by: Terry Lambert <tlambert@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/33223
Reviewed-by: Taylor Hutt <thutt@chromium.org>
diff --git a/roibot/roibot.py b/roibot/roibot.py
index 132cf2c..5daa294 100644
--- a/roibot/roibot.py
+++ b/roibot/roibot.py
@@ -607,10 +607,10 @@
"""
return self.TFResult(self.sendCommand("MRSS",
"TASK=%02d" % task,
- "X=%04.02f" % x,
- "X=%04.02f" % y,
- "X=%04.02f" % z,
- "X=%04.02f" % rotation,
+ "X=%07.02f" % x,
+ "X=%07.02f" % y,
+ "X=%07.02f" % z,
+ "X=%07.02f" % rotation,
"X=%02" % velocity))
def monRequestCounterValue(self, counter):