Function to compute total motion for single signal input

Assignment Help C/C++ Programming
Reference no: EM13937085

A control system applies a force to an actuator proportional to the voltage of a signal coming into the control system. It is desired not to allow actuator to quiver back and forth in the presence of small corrections near zero-force point. More force is required for the actuator to move to the left (negative direction of motion) then is required for the motion to the right (positive direction of motion). Assume that the transfer function (the relationship between the voltage and the movement) of the actuator is:

-Voltage less the -0.2 volt: actuator moves 1 cm/volt in the negative direction

- Absolute value of voltage less the or equal to 0.2 volts, no motion

- Voltage greater than 0.2 volts, actuator moves 2 cm/volt in the positive direction

Write the function to compute total motion for any single signal input. Write the main function that repeatedly calls the motion calculation function using an input signal stream such as this:-10.v, -8.0v,-0.21v,-0.20v,-0.05v,1.5v,0.00v,4.5v. The main function should also take as user input an initial position of the actuator and should output a final position resulting from applying the signals of the given control system. For one test simulate the effect of the given voltages for an initial position of 1.5 cm to find the final position of the actuator.

 

Reference no: EM13937085

Questions Cloud

Which method is more effective in larger, taller plants : If a girl carved her initials in the trunk of a maple tree at a point five feet above the ground twenty years ago, and the tree grew at a rate of one foot per year, where can she expect to find her initials today?
Discuss why integrating coordinated treatments : Discuss why integrating coordinated treatments for co-occurring disorders is important. Provide examples to support your discussion.
How does plant through modifications help the slant to live : Structural modifications to the orchid from the angiosperm Monocot family to leaves, roots, stems, or flowers that result in adaptive functions. How does this plant through the modifications help the slant to live and survive in its environment?
Product mix for the local market : Analyse and describe Thong Siek Food Industry's product mix for the local market in terms of width, length, depth and consistency.
Function to compute total motion for single signal input : A control system applies a force to an actuator proportional to the voltage of a signal coming into the control system. It is desired not to allow actuator to quiver back and forth in the presence of small corrections near zero-force point. More f..
The basis of race, religion, sex, or national origin : Case chosen: Civil Rights Act of 1964, also known as Equal Opportunity Employment Act: It is an unlawful employment practice to adjust the scores of, use different cut off scores of, or otherwise alter the results employment related test on the basis..
Find an article on the family tree or phylogeny of organism : Find an article on the family tree or phylogeny of your organism. Summarize the information describing related species. Search key words might include phylogeny, phylogenetic, and genetic analysis.
Determine the transfer function of the system : Determine the transfer function of the system and determine and plot the amplitude response of the system - Sketch the poles and zeros of the transfer function in the complex plane. Is the system BIBO stable?
What is the output of the following function call after main : What is the output of the following function call, given the function shown after main?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Implement the default constructor

Implement the default constructor and the constructors with one and two int parameters. The one parameter constructor should initialize the first member of the pair; the second member of the pair is to be 0.

  A hierarchical jpeg encode decoder for greyscale images

This project is to develop a program that implements a hierarchical JPEG encoder/decoder for greyscale images.

  Dimensional array of integers and fill it with data

Create a 2-by-3 two-dimensional array of integers and fill it with data. Loop through the array and locate the smallest value stored. Print out the smallest value as well as its row and column position in the array

  Program that stores information for date-time objects

Derive class WeekDay from class DateTime such that WeekDay::display() will display local date time using values from the parameters and the corresponding weekday.

  Your program should include two functions

Your program should include two functions. Function celsius_at_depth should compute and return the Celsius temperature at a depth given in kilometers. Function fahrenheit should convert a Celsius temperature to Fahrenheit.

  How the project teams and coaches master agile methodology

Analyze how the project teams and coaches master the agile methodology to solve business problems. Highlight the one that you believe is the most effective and support your answer.

  Write a c program that copies the contents of one file

write a c program that copiest the contents of one file to a destination file. This program works by first prompting the user for the name of the source file and destination file.

  Write and run a c++ program that computes and displays

A machine purchased for $28,000 is depreciated at a rate of $4,000 a year for 7 years. Write and run a C++ program that computes and displays a depreciation table for 7 years.

  Different types of loans

Dwayne runs a money lending business in which he offers different types of loans, such as personal loan, car loan, and home loan, on high rate of interest to those individuals who cannot get a loan from the commercial banks. As part of his busines..

  Write a function that permanently swaps two floats

Write a function that permanently swaps two floats using references.

  Design a class named pet

Pet Class- Design a class named Pet, which should have the following fields: Name - The name field holds the name of a pet

  Writing function that computes leap years

Write down function that computes leap years. Function prototype is as follows: Write function body which returns true if year is a leap year and false if year is not a leap year.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd