My science classes are trying to program their robot to move automatically through the VEXcode IQ blocks app. The brain and iPad are connecting; all the software is updated; and my students have done everything correctly, but the robot will either not move at all or only complete half of its tasks. We have tried turning the brain off, taking out the battery, and retyping in the brain ID, but nothing is fixing the problem. Is there anything else we should be trying???
post the code to get better help
Post the code so the problem can be diagnosed.
this thread may be of help
For this code: students were able to make the robot move forward and backward, but then after that it stopped and didn’t complete the rest of the tasks.
For this code, students weren’t able to move their robot at all.
Use more code that tells the robot how far to move. More of the “Drive forward 12 inches” and for the turns, tell it how much, “Turn right for 90 degrees”
Your inputs are not enough to tell the robot “how far?”.
In this program you’re effectively telling the robot to turn on then off (then on, then off again) within the matter of milliseconds - there’s no duration set.
Try using wait command blocks, or drivetrain commands to instruct the robot to travel a set distance.
We have been using the drive train commands. This is a code that my students tried yesterday, but it also didn’t work even though everything was downloaded, updated, and connecting properly.
I have found that some of my students are able to get their robot to work using a code like the one in this picture, but for other groups it just doesn’t work, and I don’t know what to do to help them.
In this program, you don’t need the “stop driving” commands. The “drive Forward” will automatically stop after the command is complete.
For the “drive reverse… and don’t wait” command, the robot will not do anything, because immediately after it starts driving in reverse (without waiting for it to move 15 inches) it will “Stop Driving”
When you find students that have a working program, try downloading that to other robots to confirm they work correctly. They may have other issues with their configuration which prevent it from working.
What if the “drive forward” command without giving a specific distance doesn’t work? We’ve run into that issue as well.
If your program is:
Drive - Forward
The program will do as you instructed, but seem to do nothing. As soon as it starts driving forward, it will stop. Try:
Drive - Forward
Wait 3 seconds
Then, it will drive forward for 3 seconds, instead of 0 seconds.