Hybrid vehicle. In Chapter 7, Figure P7.31 shows the block diagram of the speed control of an HEV rearranged as a unity feedback system (Preitl, 2007). Let the transfer function of the speed controller be GSC s KPsc KIsc s KPsc s KIsc KPsc s a. Assume first that the speed controller is configured as a proportional controller KISC 0 and GSC s KPSC . Calculate the forwardpath open-loop poles. Now use MATLAB to plot the systems root locus and find the gain, KPSC that yields a critically damped closed-loop response. Finally, plot the time-domain response, c(t), for a unit-step input using MATLAB. Note on the curve the rise time, Tr, and settling time, Ts. b. Now add an integral gain, KISC , to the controller, such that KISC =KPSC 0:4. Use MATLAB to plot the root locus and find the proportional gain, KPSC , that could lead to a closedloop unit-step response with 10% overshoot. Plot c(t) using MATLAB and note on the curve the peak time, Tp, and settling time, Ts. Does the response obtained resembleasecond-orderunderdamped response?
CSE 360 TEST DRIVEN DEVELOPMENT-TDD Traditional Development Collect requirements Design solution Code solution Test solution Deliver TDD: (Red-Green-Refactor) Write a test Run all tests Write the implementation code Run all tests Refactor Red State While writing tests Red state b/c it is written before implementation, it is supposed to fail Being in green while testing is a sign of a false positive Green State Once implementation is finished, the test should pass If not, implementation is wrong The ides a not to make the implementation final, but to provide just enough code for the test to pass Refactoring Once green refactoring Make code optimum without addi