03 Lec Model - Based.design
03 Lec Model - Based.design
Introduction 2-1
Modeling, Design, Analysis
(paraphrased)
What is Model-Based Design?
1. Create a mathematical model of all the parts of
the embedded system
Physical world
Control system
Different sub-systems,
Software environment different approaches to
Hardware platform modeling
Network
Sensors and actuators
2. Construct the implementation from the model
Goal: automate this construction, like a compiler
In practice, only portions are automatically constructed
Modeling Techniques in this Course
Models that are abstractions of system dynamics
(how things change over time)
Examples:
Modeling physical phenomena – ODEs
Feedback control systems – time-domain modeling
Modeling modal behavior – FSMs, hybrid automata
Modeling sensors and actuators – calibration, noise
Modeling software – concurrency, real-time models
Modeling networks – latencies, error rates, packet loss
Modeling of Continuous Dynamics
Ordinary differential equations, Laplace
transforms, feedback control systems, stability
analysis, robustness analysis, …
An Example: Modeling
Helicopter Dynamics
Modeling Physical Motion
Six degrees of freedom:
Position: x, y, z
Orientation: pitch, yaw, roll
Notation
Notation
Newton’s Second Law
Orientation
Angular version of force is Torque.
For a point mass rotating around a
fixed axis:
Ty(t ) = r f (t )
angular momentum, momentum
Justas force is a push or a pull, a torque is a twist.
Units: newton-meters/radian, Joules/radian
Note that radians are meters/meter (2p meters of circumference per 1 meter
of radius), so as units, are optional.
Rotational Version of Newton’s
Second Law
Simple Example
Feedback Control Problem
A helicopter without a tail rotor, like
the one below, will spin
uncontrollably due to the torque
induced by friction in the rotor shaft.
Control system
problem: Apply torque
using the tail rotor to
counterbalance the
torque of the top rotor.
Actor Model of Systems
A system is a function that
accepts an input signal and
yields an output signal.
Simplifies differential
equation to: