Permalink
Browse files

Updated debug code

  • Loading branch information...
1 parent 564f706 commit 9120748d7272bc67fb74c9e71cb6881b061b57dd @nfearnley committed Feb 25, 2011
Showing with 11 additions and 9 deletions.
  1. +11 −9 RobotPlayer.java
View
@@ -23,15 +23,17 @@ public void run()
try
{
// Debug Information
- /*
- * myRC.setIndicatorString(0, myRC.getChassis().toString());
- * String components = ""; for (ComponentController comp :
- * myRC.components()) { components += comp.type().toString() +
- * " "; } myRC.setIndicatorString(1, components);
- * myRC.setIndicatorString(2,
- * String.valueOf(Clock.getBytecodeNum()));
- */
- myRC.addMatchObservation("I am stupid.");
+
+ myRC.setIndicatorString(1, myRC.getChassis().toString());
+ ComponentController [] comps = myRC.components();
+ String complist = "";
+ for (ComponentController comp : comps)
+ {
+ complist += comp.type().toString() + " ";
+ }
+ myRC.setIndicatorString(2, complist);
+
+ //myRC.components()
myRC.yield();
}
catch (Exception e)

0 comments on commit 9120748

Please sign in to comment.