- #1
armin11
- 66
- 0
hi,
I'm designing a controller for quadroto with MATLAB and I'm using SIMULINK to do this.
In the embedded function I have to define the initial values so that the velocities take initial values but then in the embedded function the derivative of the velocities is calculated and then there is an integrator after the embedded function that returns to the velocities.I should define initial values so that velocity input takes these values once and after that at each step velocities are entered by the feedback and initial values should't be entered.How can I do this?Is there a way to do this?for example in embedded function to write a code that takes the initial values at t=0 and after that inputs are from feedback?please help.
I'm designing a controller for quadroto with MATLAB and I'm using SIMULINK to do this.
In the embedded function I have to define the initial values so that the velocities take initial values but then in the embedded function the derivative of the velocities is calculated and then there is an integrator after the embedded function that returns to the velocities.I should define initial values so that velocity input takes these values once and after that at each step velocities are entered by the feedback and initial values should't be entered.How can I do this?Is there a way to do this?for example in embedded function to write a code that takes the initial values at t=0 and after that inputs are from feedback?please help.