logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Seth PowelllEngineering
(5/5)

561 Answers

Hire Me
expert
Draven HowellPhilosophy
(5/5)

906 Answers

Hire Me
expert
Quintin MiddletonResume writing
(4/5)

909 Answers

Hire Me
expert
Douglas RichardsPsychology
(5/5)

641 Answers

Hire Me
MATLAB
(5/5)

Store the newest target orientation in a ring buffer, which I have initialized for you.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Fire control (ring buffers, plot updating) 

Drive link to access the provided files. 

• m-file due by 11:00 AM U.S. Mountain Standard Time, Friday May 14, 2021

Background:

For this assignment, you will write a program that decides when a simulated weapon is to fire based on a history of the orientation and position of a moving target, which I imagine as a quad-rotor drone. Your task comes down to writing the contents of a function called fire_decision.m, which is called by the main program every 0.1s with updated target information. I have provided a “template” version of this function. You will write Matlab code in this function that accomplishes the tasks detailed below. You can run the entire assignment, using your own “smart” decision software, by typing fire_control;

in the command window, and compare the “dumb” fire control decision (which just blindly fires every 10 seconds) by typing fire_control(‘dumb’);

Other invocations that may be useful for debugging:

% Arguments: smart/dumb, random “seed”, speedup factor fire_control(‘smart’,200,1); % same as fire_control; fire_control(‘dumb’, 200,1); % same as fire_control(‘dumb’); fire_control(‘smart’,200,3); % ‘smart’ decision, triple speed fire_control(‘dumb’ ,200,2); % ‘dumb’ decision, double speed

If your program is successful, it will perform better than the ‘dumb’ decision.

You will write a Matlab program that will do the following:

Store the newest target orientation in a ring buffer, which I have initialized for you.

From the ring buffer, extract an array of the most recent 20 orientations in order.

Smoothly update figure 2 with the time-ordered target orientation data.

Your program will instruct the gun to fire only under the following conditions:

- The target is at a range of less than 500 meters.

- The target has just made a sharp turn (oldest 3 orientations have a range greater than 60 degrees), and now follows a mostly-linear course (newest 17 orientations have a range of less than 5 degrees).

You MUST follow the requirements below to make automated grading possible:*

Use the provided library functions demonstrated in class.

Don’t add any functions requiring a mouse click, key press, or any other user input.

Don’t add any figures or graphics other than what was provided.

Use Matlab’s default fonts, colors, linestyles, and all other plot properties.

*Without requiring the invention of Generalized Artificial Intelligence for this course, which I admit I am working on, but doubt I can solve this semester.

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme