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

Carlos

E-mail
Company/University
The University of Hong Kong

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Carlos View all
Updated File Comments Rating
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

@Wern-Juin Choy

During simulations, almost all blocks in this package directly feedthrough signals and do nothing. For example, the IMU block has inputs, which are fed to the output during simulations, so running in continuous should be no problem. I shall test to see again tomorrow when I am back at my lab.

05 Aug 2014 Simulink Support Package for Arduino Hardware Student-priced microcontroller board Author: MathWorks Simulink Team

Thanks Md. Ashfaque & Sreeram! As a temporary solution I used the for iterator block and buffered the bytes in an array. I shall look into custom blocks later on for better efficiency.

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

[Re: Wern-Juin Choy]

You never want to run a simulation model in a micro controller for several reasons:

1) The purpose of the simulation model is so that you could test your controller before using it on your physical platform. When deployed, your vehicle's actual dynamic response replaces your simulation model.

2) The ATMEGA2560 chip is very slow and can only run in discrete time. You will never get a good sample rate if you decide to run a complex simulation model on it.

So the advice is to test your controller in MATLAB/SIMULINK using the dynamic model, then upload your controller to the APM2.5 for validation and deployment.

12 Jul 2014 Simulink Support Package for Arduino Hardware Student-priced microcontroller board Author: MathWorks Simulink Team

Hello, if I want to read multiple bytes of data in each time step, what I should do with the Serial Read block since it only read 1 byte everytime? Thanks.

08 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

Contact us