Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
René Søndergaard Nilsson
LEGO
Commits
f0ba05c9
Commit
f0ba05c9
authored
May 28, 2015
by
ivangrujic
Browse files
tweaks on sqaure program
parent
8f4983ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Lesson10/Programs/PilotSquare/src/PilotSquare.java
View file @
f0ba05c9
...
...
@@ -49,22 +49,27 @@ public class PilotSquare
Button
.
waitForAnyPress
();
for
(
int
i
=
0
;
i
<
4
;
i
++)
for
(
int
i
=
0
;
i
<
3
;
i
++)
{
//pilot.rotate(-360);
//pilot.rotate(360);
//Button.waitForAnyPress();
//pilot.travel(50);
//Button.waitForAnyPress();
pilot
.
travel
(
50
);
show
(
poseProvider
.
getPose
());
Delay
.
msDelay
(
1000
);
pilot
.
rotate
(
90
);
pilot
.
rotate
(
-
90
);
show
(
poseProvider
.
getPose
());
Delay
.
msDelay
(
1000
);
}
//pilot.travel(50);
//Button.waitForAnyPress();
//pilot.rotate(360);
//Button.waitForAnyPress();
pilot
.
stop
();
LCD
.
drawString
(
"Program stopped"
,
0
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment