Rank: 408821 based on 0 downloads (last 30 days) and 0 file submitted
photo

Wern-Juin Choy

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Wern-Juin Choy View all
Updated File Comments Rating
30 Sep 2014 barrel and pincushion lens distortion correction I = LENSDISTORT(I, k)corrects for radially symmetric distortions Author: Jaap de Vries

06 Aug 2014 APM2 Simulink Blockset Simulink blockset for use with the ArduPilot Mega 2.0 hardware. Includes blocks to read external rad Author: Robert Hartley

@Carlos

The blocks run smoothly on continuous. What I meant is that after testing and that it works, I would upload it directly onto the quadrotor. Thus it would better if it could run on discrete and save time later on in trying to make it discrete.

05 Aug 2014 APM2 Simulink Blockset Simulink blockset for use with the ArduPilot Mega 2.0 hardware. Includes blocks to read external rad Author: Robert Hartley

@Carlos
Thank you for the reminder. I want to test the dynamic model with the APM2 Simulink Blockset. That is why I have to change it into discrete state so that I can use it along with the blocks in the blockset.

After simulation and correction, I would then deploy it onto APM2.5.

22 Jul 2014 APM2 Simulink Blockset Simulink blockset for use with the ArduPilot Mega 2.0 hardware. Includes blocks to read external rad Author: Robert Hartley

I would like to upload the dynamic model equation into the APM2.5. An example coding and simulink model can be found in Peter Corke's Robotics Toolbox which can be viewed on Matlab. The dynamics is coded in an S-function and is solved using continuous state solver. However, the manual in this blockset says that all completed model has to be run on fixed-step discrete solver.

I have tried the following but to no avail
1) changing the code from continuous input states to discrete states
2) Introducing ts = [1 0] where it solves in continuous state with minor sample time

I am guessing that I have to recode the S-function into a MEX or C file before I can use the Run On Hardware option in simulink.

Any additional help would be gladly appreciated.

regards,
Erwin

01 Jul 2014 APM2 Simulink Blockset Simulink blockset for use with the ArduPilot Mega 2.0 hardware. Includes blocks to read external rad Author: Robert Hartley

Looks like I do not have to re-install Matlab. All I have to do is to close and restart Matlab, run the script and the library appears in the simulink library.

Contact us