From 0c0e900ed71b92feda6426b53804b79759e07444 Mon Sep 17 00:00:00 2001 From: Olivier Michel Date: Tue, 15 Dec 2020 09:37:01 +0100 Subject: [PATCH] Update template.py (#2572) --- resources/templates/controllers/template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/templates/controllers/template.py b/resources/templates/controllers/template.py index 010f1362d30..f50c0ac019e 100644 --- a/resources/templates/controllers/template.py +++ b/resources/templates/controllers/template.py @@ -12,8 +12,8 @@ # You should insert a getDevice-like function in order to get the # instance of a device of the robot. Something like: -# motor = robot.getMotor('motorname') -# ds = robot.getDistanceSensor('dsname') +# motor = robot.getDevice('motorname') +# ds = robot.getDevice('dsname') # ds.enable(timestep) # Main loop: