9
1 © 2015 The MathWorks, Inc. Connecting to hardware and rapid prototyping Nicolas Gautier Application Engineer

Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

1© 2015 The MathWorks, Inc.

Connecting to hardware and rapid

prototyping

Nicolas Gautier

Application Engineer

Page 2: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

2

Have you ever had to design, implement

and tune a controller running on a piece of

hardware?

Page 3: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

3

Challenges:

• Designing a robust controller

• Tune controller for optimal performance

Solutions:

• Rapid prototyping

• Plant modelling

Benefits:

• One-click deployment

• No need for hand-written C/C++

• Same model throughout the design process

Page 4: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

4

Connecting, deploying to hardware• Fully supported hardware

targets

• Over 400 third-party partners

• FileExchange submissions

• Support for custom targets

Page 5: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

5

Controlling the quadcopter

Page 6: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

6

Thrust estimation

Page 7: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

7

Benefits of plant model

• Parametric sweeps

• Failure injection

• Design optimization

Page 8: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

8

Rapid prototyping workflow

• Change model architecture,

Deploy

• Thrust estimation

• Query data

• Parametrize plant

Page 9: Connecting to hardware and rapid prototyping · A sensor/peripheral block library for inenjal measurements, GPS, vehicle estimation, LED, speakers, PWtv1 output, and ADC and serial

9

• MATLAB®

• Simulink ®

• Simulink Projects

• Embedded Coder ®

• Simscape Multibody ®

Find the model at:

https://github.com/Parrot-Developers/RollingSpiderEdu

Modelling Physical Systems in Simscape: Steve Miller, introductory

Track