People
All People
Programs
Global Engineering Program
Summer Undergraduate Research Fellowships (SURF)
Office of Professional Practices (Co-Op)
Engineering Ambassadors
Women in Engineering Program
Minority Engineering Program
Purdue Military Research Initiative
Schools
Aeronautics and Astronautics
Agricultural and Biological
Biomedical
Civil and Construction Engineering
Construction Engineering and Management
Chemical
Environmental and Ecological Engineering
Electrical and Computer Engineering
Engineering Education
Engineering Professional Education
Industrial
Mechanical
Materials Science and Engineering
Nuclear
School of Engineering Technology
Committees
All Committees
Engineering Leadership Team
Engineering Cabinet
Engineering Advisory Council
Engineering Area Promotions Committee
Engineering Curriculum Committee
Administration
College Administration
Dean of Engineering
Business Office
Academic Affairs
Data Analytics and Information
Deans Office Staff
Engineering Advancement
Financial Affairs
Graduate Education & Interdisciplinary Studies
Research
Facilities and Operations
Undergraduate Education
Engineering Communications
Purdue Marketing and Media
Engineering Computer Network
Engagement
My Bookmarks
Public Sites
College of Engineering
Aeronautics and Astronautics
Agricultural and Biological Engineering
Biomedical Engineering
Chemical Engineering
Civil Engineering
Construction Engineering and Management
Electrical and Computer Engineering
Engineering Education
Engineering Professional Education
Environmental and Ecological Engineering
Industrial Engineering
Materials Engineering
Mechanical Engineering
Nuclear Engineering
EPICS (Engineering Projects In Community Service)
First-Year Engineering Program
First-Year Engineering Honors Program
Global Engineering Program
Minority Engineering Program
Professional Practice (Co-Op) Program
Women in Engineering
Engineering
>
Intranet
>
Groups
>
Research Groups
>
GK12
>
TecumsehJuniorHighSchool
>
Vex Robotics
>
VexRoboticsForum
(Public)
My Account
User Name:
Password:
Print-Friendly:
E-mail this Page:
Shortcut URL:
Vex Robotics Forum:
Quote Message
Name
Subject
Quoted Message
enrico.n.manes.1 wrote:
Hello Roger, I'm writing because I thought of a way to simplify the programming of the robots that might be useful to minimize the debugging due to the fact that one motor needs to go clockwise while the other needs to go counterclockwise to go forward or reverse. We could write separate loops that handle FWD REV RIGHTTURN LEFTTURN and each of these routines could look for input such as the amount of time required for the command and which motors are being used. In other words, we could provide a more complex program template that has all of this logic at the bottom of it and the students would only need to worry about the details near the top so their code might look like, FWD (400) - go fwd for 400 milliseconds REV (200) - backup for 200 milliseconds RIGHTTURN (25) - make a right "tank turn" for 25 milliseconds FWD (800) - go fwd for 800 milliseconds when each one of these commands gets read it would go to the subroutines discussed above to make the move and then return back into the program to receive the next instruction. Anyhow, I've got to look into downloading and installing that programming environment to see if I can make this work but it "should" be doable. The entirety of the program would be more complex but the students wouldn't need to see it all to understand it - they would only need to work within the boundaries we create at the top of the program. Thanks, Nino
Message Body
Prove you're human...
8
*
8
*
3
3
= ???