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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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