lehrkraefte:blc:informatik:glf20:robotik:mgr:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
lehrkraefte:blc:informatik:glf20:robotik:mgr:start [2021/03/26 11:38]
michael.greminger
lehrkraefte:blc:informatik:glf20:robotik:mgr:start [2021/03/26 11:59]
michael.greminger
Line 53: Line 53:
 <hidden Lösungsvorschlag> <hidden Lösungsvorschlag>
 <code python> <code python>
-kommt bald...+from simrobot import *   
 +RobotContext.enableTrace(True) 
 +robot = LegoRobot() 
 +gear = Gear(); 
 +robot.addPart(gear); 
 + 
 +radius = 0.05 
 +gear.forward() 
 +while not robot.isEscapeHit(): 
 +    gear.rightArc(radius) 
 +    Tools.delay(2000) 
 +    radius = radius * 1.1 
 +robot.exit()
 </code>   </code>  
 </hidden> </hidden>
  • lehrkraefte/blc/informatik/glf20/robotik/mgr/start.txt
  • Last modified: 2021/03/26 12:09
  • by michael.greminger