Controlling EV3/ Multiple Steps with single button push

13 views
Skip to first unread message

MrsB

unread,
May 31, 2018, 12:42:23 PM5/31/18
to mitappinv...@googlegroups.com
Hi,

   I'm building an app for my 2nd graders to use with the EV3 robots.  I want them to measure distances and decide on a turn direction to get the robot to travel a specific path.  The user interface is working, the robot is connecting fine.  The problem I'm having is with the "Run Maze" button.  I want the robot to take each measurement and turn step by step.  I can get the robot to move forward the correct distance, and to turn the correct direction, but not in sequence. 

   Right now I know that the program can pull the distance from the students selection and move forward correctly, but only if that is the only step in the "Run Maze".  The robot will also turn the correct direction, but again only if it is the only step in the "Run Maze".  I want it to read the measurement from the first selection, move, read the turn direction, move, read the 2nd measurement, move, etc.

 Thank you for any help you can give me!

==> apk removed
LegoMaze.aia

Ghica

unread,
Jun 1, 2018, 10:17:57 AM6/1/18
to MIT App Inventor Forum
Sorry, You are not allowed to attach an .apk.
First because it is a security risk. Second, because we cannot look into the source code and are therefore we will not be able to help you.

Go to the Projects menu. Choose export selected project (.aia) to my computer (it will go to your download folder.
Post that .aia instead. Export your projects often anyway, to have a suitable backup if something goes wrong.
Cheers, Ghica.

MrsB

unread,
Jun 1, 2018, 11:57:24 AM6/1/18
to MIT App Inventor Forum
Thank you, I've added the .aia now.
Reply all
Reply to author
Forward
0 new messages