Question
PART A: OSV LOGIC Before you start to write code for your OSV, it will be very important to develop an appropriate flow chart /
PART A: OSV LOGIC
-
Before you start to write code for your OSV, it will be very important to develop an appropriate flow chart / logic structure. For this question, assume that the OSV has a single sensor located at the front of the vehicle that can accurately detect obstacles, including the walls of the course.
-
Given that the OSV is originally oriented as indicated by the blue arrow above, use the provided flowchart to describe the OSVs motion path in detail. Would the OSV be able to successfully to navigate to the mission site?
-
Consider the command box labeled Move Forward.
-
Explain why this command is not specific enough.
-
Considering that batteries tend to output lower voltages as they discharge (e.g. 9 V when fully charged vs. ~7 V when less charged), is it better to use time based commands or distance based commands to move the OSV? Briefly explain your reasoning.
-
-
Consider the command box labeled Turn Left 90.
-
Explain why this this command is not appropriate in all situations.
-
The flow chart shown above currently has two decision boxes that are used to check conditions and then make decisions.
-
While you would likely need to make several changes to improve this flow chart
-
Identify at least one more decision box that you would add to this flowchart to help make the OSVs decision making more robust. Indicate where you think your decision box/es should be nested in the logic structure.
-
*Note: You do not need to develop a new flow chart, just suggest what additional decision box/es could help make the OSVs decision making better!
Start Mission + /2 0 - Move Forward True False Obstacle? Obstacle 2 Obstacle 3 2.0 Turn Left 90 True False Mission Site (e.g., fire) Mission Site? Obstacle 1 Complete Mission 0.650.6> 4.0 Mission Site? Obstacle
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started