Thread history

From RoboWiki
From Talk:Main Page
Viewing a history listing
Jump to: navigation, search
descTime User Activity Comment
13:31, 5 November 2012Wompi (Talk | contribs)New reply created (Reply to While loop in the 'run' method)
13:22, 5 November 2012MN (Talk | contribs)New reply created (Reply to While loop in the 'run' method)
00:40, 5 November 2012Astacus (Talk | contribs)New thread created 

I'm unclear as to when the while loop in the run method starts, so I added a debug command there:

while(true) {
	setDebugProperty("startingWhile", String.format("heading: %.1f° at time %d.", getHeading(),  getTime()));
	ahead(200);
	// ...
}

But to my surprise, this doesn't get displayed until after the ahead and all the following commands are executed, which I would assume should be the beginning of the second iteration. Is there something that prevents these debug properties from being displayed immediately?

To Wombi: Das ist der Fluch der guten Tat. Ich hoffe, Du bereust nicht, meine Frage beantwortet zu haben.

Astacus00:40, 5 November 2012

I never used setDebugProperty. Always used plain System.out.println.

Probably, setDebugProperty value is only used inside "execute" events, like all other setter methods.

MN13:22, 5 November 2012
 

Hi mate ...

I gave a little example on your user discussion page Discuss - it's a little more appropriate than the main page. Feel free to ask about whatever bother you - no matter what.

Wompi

Wompi13:31, 5 November 2012
 
Personal tools