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

  Differentiate between declaration and definition in cpp

Differentiate between declaration and definition in C++. What is cloning? 3) Describe the main characteristics of static functions.

  Where c is the temperature in degrees celsius

Write a program that takes as input a depth in kilometers inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit.

  Write a function to sum a list of numbers

Write a function to sum a list of numbers: (sum '(1 2 3 4))

  Design a deck plan space ship in eclipse

Develop a simple interactive two-dimensional spaceship deck plan editor using OpenGL and GLUT. Your program will enable a user to create and save a deck plan of a hypothetical spaceship comprising the hull walls.

  Define a structure to store marks of a student

Define a structure to store roll no, name and marks of a student - using the structure of Q2. a), above write a 'C' program to create a file "student.dat". There must be one record for every student in the file.

  Display the commands

Display the commands(s) used to do the following (and show the results): see the df command to view file system use in megabytes.

  Write the copy-array procedure by a function

Write the C++ statement that dynamically creates an array of 10 components of type int and num contains the base address of the array

  Prepare a program that reads in a list of integer

Prepare a program that reads in a list of integer numbers and print out the sum of all numbers, the average, the lowest and the highest value entered.

  Program to implement banking system

What if the account number on a transaction doesn't match an existing account number?

  Describe the three ways a client

Describe the three ways a client can reference a name from a namespace in C++ and what are the arguments for and against the C++ policy on inlining of methods?

  Class scope variables-helper methods

Design a C# Windows Application to compute the cost of manufacturing different objects. The object can be a cylinder, a cone or a prism with the equilateral triangular base. The user should enter the radius of the base (or the side of the base for..

  Write c program which compute acceleration of jet fighter

Write a C++ program which compute the acceleration (m/s 2) of jet fighter launched from aircraft-carrier based catapult, provided jet's takeoff speed in km/hr

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