Connecting to hardware and rapid prototyping · Almost Real-Time Target "2.0 Dan ananderi Generic...

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

Transcript of Connecting to hardware and rapid prototyping · Almost Real-Time Target "2.0 Dan ananderi Generic...

Page 1: Connecting to hardware and rapid prototyping · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

1© 2015 The MathWorks, Inc.

Connecting to hardware and rapid

prototyping

Nicolas Gautier

Application Engineer

Page 2: Connecting to hardware and rapid prototyping · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

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 · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

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 · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

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 · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

5

Controlling the quadcopter

Page 6: Connecting to hardware and rapid prototyping · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

6

Thrust estimation

Page 7: Connecting to hardware and rapid prototyping · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

7

Benefits of plant model

• Parametric sweeps

• Failure injection

• Design optimization

Page 8: Connecting to hardware and rapid prototyping · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

8

Rapid prototyping workflow

• Change model architecture,

Deploy

• Thrust estimation

• Query data

• Parametrize plant

Page 9: Connecting to hardware and rapid prototyping · Almost Real-Time Target "2.0 Dan ananderi Generic custom target ror almost real-time simulation on windcwvs. linux. and Solaris, (hardware

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