0% found this document useful (0 votes)
5 views

2007 Breden Development

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

2007 Breden Development

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 110

UNIVERSITEIT•STELLENBOSCH•UNIVERSITY

jou kennisvennoot • your knowledge partner

Development and Control of a 3-axis Stabilised


Platform

by

Adolf Friedrich Ludwig Bredenkamp

Thesis presented in partial fullment of the requirements for


the degree of Master of Science in Electronic Engineering at
the University of Stellenbosch

Department of Electrical and Electronic Engineering


University of Stellenbosch
Private Bag X1, 7602 Matieland, South Africa

Supervisor: Prof W.H. Steyn

March 2007
Declaration

I, the undersigned, hereby declare that the work contained in this thesis is my own
original work and that I have not previously in its entirety or in part submitted it
at any university for a degree.

Signature: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.F.L. Bredenkamp

Date: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

i
Abstract

The successful control of a three-degree-of-freedom gyroscope is presented for the


application of steering and stabilising a platform mounted underneath an airship.
The end goal is to stabilise a camera for earth observation purposes.
The development of the necessary electronics, sensors and actuators along with
the hardware and software to interface these components are presented. This include
DC drives, torque control systems for the gimbal motors and a speed control system
for the gyroscope as well as platform angle and angular rate sensors.
A mathematical model for the gyroscope, based on Euler's equations of motion,
is presented. Non-linear simulations are performed and compared to measurements
of the plant's behaviour to step torque commands to determine the parameters of
the gyroscope. Pole placement and LQR optimal control methods are considered in
the design of a MIMO controller to steer the platform in the elevation plane, along
with a PI controller to steer the platform in the azimuth plane. Ground tests display
the success of the steering controllers.

ii
Opsomming

Die suksesvolle beheer van 'n giroskoop met drie grade van vryheid, om te dien as 'n
stabilisasie platform gemonteer onderaan 'n lugskip, word aangetoon. Die eindoel is
om 'n kamera te stuur en te stabiliseer vir aardwaarnemings doeleindes.
Die nodige elektronika, aktueerders en sensore word ontwikkel, sowel as die hard-
eware en sagteware wat die onderskeie komponente aan mekaar koppel. Dit sluit
in GS motor aandryfelektronika, wringkrag- en spoedbeheerstelsels asook platform
hoek- en hoeksnelheidsensore.
'n Wiskundige giroskoopmodel, gebaseer op Euler se wette, word aangebied.
Nie-lineêre simulasies word uitgevoer en vergelyk met gemete trapweergawes van
die aanleg om die nodige parameters van die giroskoop te bepaal. Beheerstrategieë
gebaseer op die metodes van poolplasing en LQR optimale beheer word ondersoek
om die platform te stuur in die elevasievlak. 'n PI beheerder word ontwerp om die
platform te stuur in die asimutvlak. Grondtoetsresultate toon die suksesvolle beheer
van die platform aan.

iii
Acknowledgements

I would like to thank:

ˆ Professor W.H. Steyn, for his guidance throughout this project.


ˆ Sunspace for funding the project.
ˆ Jackie Blom and the rest of the sta at Central Mechanical Services for seeing
to the development of the mechanical aspects of this project.

ˆ My family for their love and support. Especially my parents for giving me
much more than an education. Your love and support will always accompany
me.

ˆ My fellow students in the ESL for your input and contribution to countless
memorable moments.

ˆ Nicola van Wilgen, for support and motivation.


ˆ The Almighty God, Creator of all knowledge.

iv
Contents

Declaration i
Abstract ii
Opsomming iii
Acknowledgements iv
Contents v
List of Figures viii
List of Tables xi
Nomenclature xii
1 Introduction 1
1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1 Aerial Photography and Video . . . . . . . . . . . . . . . . . . 1
1.1.2 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Principles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Overview of Thesis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2 Theory and Model Development 7


2.1 Coordinate Systems Denitions . . . . . . . . . . . . . . . . . . . . . 7
2.1.1 Inertial Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.2 Airship Body Axes . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1.3 Platform Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1.4 Gimbal Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

v
CONTENTS vi

2.2 Azimuth and Elevation Angles . . . . . . . . . . . . . . . . . . . . . . 10


2.3 Euler Rotations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4 Euler Rotation Rates . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5 Euler's Equations of Motion . . . . . . . . . . . . . . . . . . . . . . . 15
2.6 Gyroscope Equations of Motion . . . . . . . . . . . . . . . . . . . . . 16
2.6.1 Disturbance Torques on Gimbals due to Viscous Friction . . . 21
2.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

3 Platform Development 23
3.1 Three-Degree-of-Freedom Gyroscope . . . . . . . . . . . . . . . . . . 23
3.2 Actuators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.2.1 Motor Drives . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.2.2 Flywheel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.2.3 Gimbal Motors . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.2.4 Torque Controllers . . . . . . . . . . . . . . . . . . . . . . . . 27
3.2.5 Speed Controller . . . . . . . . . . . . . . . . . . . . . . . . . 30
3.3 Sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.3.1 Angle Sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.3.2 Inertial Measurement Unit (IMU) . . . . . . . . . . . . . . . . 33
3.4 Power Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.5 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.5.1 Microprocessor . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.5.2 Ground Station . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

4 Model Verication and Simulations 41


4.1 Plant Response to Step Torque Commands . . . . . . . . . . . . . . . 41
4.1.1 Simulated Response without Friction . . . . . . . . . . . . . . 42
4.1.2 Measured Response . . . . . . . . . . . . . . . . . . . . . . . . 44
4.2 Parameter Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . 45
4.3 Eect of Airship Rotations on Platform . . . . . . . . . . . . . . . . . 46

5 Platform Controller Design 50


5.1 Control Strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5.2 Elevation Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5.2.1 Specications and Sample Rate Selection . . . . . . . . . . . . 51
CONTENTS vii

5.2.2 State Equations and Control Law . . . . . . . . . . . . . . . . 53


5.2.3 Controllability . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
5.2.4 Controller Design Methods . . . . . . . . . . . . . . . . . . . . 57
5.2.5 Pole Placement Controller Design . . . . . . . . . . . . . . . . 59
5.2.6 LQR Controller Design . . . . . . . . . . . . . . . . . . . . . . 61
5.3 Azimuth Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

6 Results 69
6.1 Elevation Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.1.1 Pole Placement Controller Results . . . . . . . . . . . . . . . . 69
6.1.2 LQR Controller Results . . . . . . . . . . . . . . . . . . . . . 72
6.2 Azimuth Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
6.3 Disturbance Rejection . . . . . . . . . . . . . . . . . . . . . . . . . . 75
6.4 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
6.4.1 Elevation controller . . . . . . . . . . . . . . . . . . . . . . . . 76
6.4.2 Azimuth controller . . . . . . . . . . . . . . . . . . . . . . . . 77

7 Recommendations and Conclusions 78


7.1 Recommendations for Future Work . . . . . . . . . . . . . . . . . . . 78
7.2 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

List of References 81
A Gyroscope Design 84
A.1 Gimbal Moment of Inertia Measurements . . . . . . . . . . . . . . . . 84

B PI Controller Analogue Implementation 87


C Hardware Detail 89
C.1 Motor Drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
C.1.1 LMD18200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
C.1.2 UC3524A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
C.1.3 Analoque Controllers . . . . . . . . . . . . . . . . . . . . . . . 92
C.2 Potentiometers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
C.3 Inertial Measurement Unit . . . . . . . . . . . . . . . . . . . . . . . . 94
List of Figures

1.1 An aerial photograph of Paris taken in 1868 by Nadar . . . . . . . . . . . 2


1.2 A three-degree-of-freedom gyroscope . . . . . . . . . . . . . . . . . . . . 4
1.3 Representation of the basic law of motion of the gyroscope . . . . . . . . 4
1.4 Gyroscopic precession under applied external torques . . . . . . . . . . . 5
2.1 Airship body axes denition . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Gimbal axes and platform axes denitions . . . . . . . . . . . . . . . . . 9
2.3 Orthogonal gimbal rotation axes denitions . . . . . . . . . . . . . . . . 10
2.4 Boresight azimuth and elevation angle denitions . . . . . . . . . . . . . 11
2.5 The Euler 3-2-1 rotation sequence . . . . . . . . . . . . . . . . . . . . . . 13
2.6 Vector transformation from platform axes to O − 12300 . . . . . . . . . . 17
2.7 Vector transformation from O − 12300 to O − 10 23 . . . . . . . . . . . . . 17
3.1 Three-degree-of-freedom gyroscope . . . . . . . . . . . . . . . . . . . . . 24
3.2 Block diagram of gimbal motor drive systems . . . . . . . . . . . . . . . 25
3.3 Block diagram of ywheel motor drive system . . . . . . . . . . . . . . . 26
3.4 Open loop step response of plant 1 and 2 . . . . . . . . . . . . . . . . . . 28
3.5 Open loop step response of plant 3 . . . . . . . . . . . . . . . . . . . . . 28
3.6 Block diagram of torque control loop . . . . . . . . . . . . . . . . . . . . 29
3.7 Closed loop step response of systems driving motor 1 and 2 . . . . . . . . 30
3.8 Closed loop step response of system driving motor 3 . . . . . . . . . . . . 30
3.9 Open loop step response of ywheel motor and drive . . . . . . . . . . . 31
3.10 Block diagram of speed control loop . . . . . . . . . . . . . . . . . . . . . 31
3.11 Root locus of speed controller . . . . . . . . . . . . . . . . . . . . . . . . 32
3.12 Closed loop step response of speed control loop . . . . . . . . . . . . . . 32
3.13 Block diagram of angle sensor signal path . . . . . . . . . . . . . . . . . 33
3.14 Block diagram of IMU signal path . . . . . . . . . . . . . . . . . . . . . . 34
3.15 Integrated rate gyro measurement in X-axis before calibration . . . . . . 35
3.16 Integrated rate gyro measurement in X-axis after calibration . . . . . . . 35

viii
LIST OF FIGURES ix

3.17 Integrated rate gyro measurement in Y-axis before calibration . . . . . . 35


3.18 Integrated rate gyro measurement in Y-axis after calibration . . . . . . . 35
3.19 Integrated rate gyro measurement in Z-axis before calibration . . . . . . 36
3.20 Integrated rate gyro measurement in Z-axis after calibration . . . . . . . 36
3.21 Block diagram of power distribution network . . . . . . . . . . . . . . . . 36
3.22 Block diagram of controller and actuators/sensors interface . . . . . . . . 37
3.23 Microprocessor embedded software ow chart . . . . . . . . . . . . . . . 38
3.24 Ground station software ow chart . . . . . . . . . . . . . . . . . . . . . 39
3.25 Ground station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
4.1 Simulation diagram of gyroscope dynamic model . . . . . . . . . . . . . . 42
4.2 Simulated step response for a torque step command to gimbal 1 . . . . . 43
4.3 Simulated step response for a torque step command to gimbal 2 . . . . . 43
4.4 Measured step response for a torque step command to gimbal 1 . . . . . 44
4.5 Measured step response for a torque step command to gimbal 2 . . . . . 45
4.6 Step responses for a torque step command to gimbal 1 . . . . . . . . . . 47
4.7 Step responses for a torque step command to gimbal 2 . . . . . . . . . . 47
4.8 Step responses for a torque pulse command to gimbal 3 . . . . . . . . . . 48
4.9 Typical roll, pitch and yaw rotation angles of a small blimp . . . . . . . 48
4.10 Simulated eect of blimp movement on platform due to viscous friction . 49
5.1 Open loop bode diagram of the plant responsible for elevation pointing . 52
5.2 Block diagram of full-state feedback controller . . . . . . . . . . . . . . . 56
5.3 Block diagram of the gain scheduling controller . . . . . . . . . . . . . . 59
5.4 Closed loop bode diagram of input r to output y . . . . . . . . . . . . . 60
5.5 Simulated step response of controller designed by pole placement . . . . 61
5.6 Root loci of elevation pointing system as a function of qi and q . . . . . . 63
5.7 Gain elements as a function of φG . . . . . . . . . . . . . . . . . . . . . . 64
5.8 Closed loop pole perturbations for LQR controller with gain scheduling . 65
5.9 Simulated response of LQR controller for a step in ω1ref = 0.03rad/s . . 65
5.10 Simulated response of LQR controller for a step in ω2ref = 0.03rad/s . . 66
5.11 Block diagram of closed loop system for control in the azimuth plane . . 67
5.12 Root locus of system responsible for azimuth pointing . . . . . . . . . . . 68
5.13 Simulated response of azimuth PI controller . . . . . . . . . . . . . . . . 68
6.1 Measured step response of elevation controller . . . . . . . . . . . . . . . 70
6.2 Closed-loop bode diagram of input r to output y . . . . . . . . . . . . . 71
6.3 Measured step response of modied elevation controller . . . . . . . . . . 71
LIST OF FIGURES x

6.4 Measured response of LQR controller for a step in ω1ref = 0.03rad/s . . . 72


6.5 Measured step response of LQR controller for a step in ω2ref = 0.03rad/s 73
6.6 Measured step response of LQR controller, φG = −8◦ . . . . . . . . . . . 73
6.7 Measured step response of azimuth controller, φG = θG = 0◦ . . . . . . . 74
6.8 Measured step response of azimuth controller, φG = −4◦ and θG = 33.6◦ . 74
6.9 Simulated eect of airship movement on platform . . . . . . . . . . . . . 75
A.1 Three-degree-of-freedom gyroscope design drawing, left view . . . . . . . 85
A.2 Three-degree-of-freedom gyroscope design drawing, front and top views . 86
B.1 A controller and plant feedback system . . . . . . . . . . . . . . . . . . . 87
B.2 Analogue implementation of PI controller . . . . . . . . . . . . . . . . . 88
C.1 Electronics developed for the stabilised platform . . . . . . . . . . . . . . 89
C.2 Schematic diagram of servodrives. . . . . . . . . . . . . . . . . . . . . . . 91
C.3 Schematic diagram of potensiometers . . . . . . . . . . . . . . . . . . . . 94
C.4 Schematic diagram of second-order low-pass Butterworth lter circuit . . 94
C.5 Schematic diagram of IMU . . . . . . . . . . . . . . . . . . . . . . . . . . 95
List of Tables

1.1 Capabilities of commercially available platforms . . . . . . . . . . . . . . 2


4.1 Physical properties of gimbals . . . . . . . . . . . . . . . . . . . . . . . . 45
5.1 Colour legend for Fig. 5.6 . . . . . . . . . . . . . . . . . . . . . . . . . . 63
7.1 Capabilities of platform developed in this thesis . . . . . . . . . . . . . . 80
A.1 Physical properties of gimbals . . . . . . . . . . . . . . . . . . . . . . . . 85

xi
Nomenclature

Symbols
Az Boresight azimuth angle
El Boresight elevation angle
φ Euler roll angle
θ Euler pitch angle
ψ Euler yaw angle
φ̇ Euler roll rate
θ̇ Euler pitch rate
ψ̇ Euler yaw rate
B Camera boresight vector
A321 Direction cosine matrix for Euler 3-2-1 rotation sequence
ω Angular velocity vector
I Moment of inertia tensor
Nm Motor torque vector
Nw Frictional torque vector
N Torque vector
H Angular momentum vector
h0 Flywheel angular momentum
Vref Motor torque reference voltage
Ve Torque PI controller input voltage
Vin Pulse width modulator input voltage
VI _sense Voltage measured across current sense resistor
Vspeed Flywheel velocity reference voltage
Vtacho Tachometer output voltage
km DC motor torque constant
kw Coecient of viscous friction
τ Time constant of rst order system

xii
NOMENCLATURE xiii

C Calibration matrix
C Controllability matrix
ωs Sampling frequency
ωb Closed-loop bandwidth
ωr Open-loop system resonant frequency
ωn Natural frequency
ζ Damping factor
Z Z-transform operator
z Discrete time z-transform variable
s Laplace transform variable

Acronyms
A/D Analogue-to-digital
AHRS Attitude heading reference system
ASCII American standard code for information interchange
CMS Central mechanical services
CPU Central processing unit
DC Direct current
D/A Digital-to-analogue
DOF Degree-of-freedom
IMU Inertial measurement unit
LQG Linear quadratic gaussian regulator
LQR Linear quadratic regulator
MIMO Multi input multi output
OBC On-board computer
PCA Programmable counter array
PI Proportional Integral
PWM Pulse width modulation
RF Radio frequency
RMS Root mean square
SEAIP Stabilized electro-optical airborne instrumentation platform
SISO Single input single output
UART Universal asynchronous receiver transmitter
UAV Unmanned aerial vehicle
ZOH Zero order hold
NOMENCLATURE xiv

Subscripts
I Inertial axes
B Airship body axes
G Gimbal axes
P Platform axes
1 Gimbal axis 1
2 Gimbal axis 2
3 Gimbal axis 3
f Flywheel
Chapter 1
Introduction

1.1 Motivation
1.1.1 Aerial Photography and Video
The rst aerial photograph was taken by balloonist Gaspard-Félix Tournachon in
1858, also known as Nadar, his pseudonym. Fig. 1.1 shows a photograph of Paris
taken by Nadar in 1868 [20]. Aerial photography and video as a remote sensing tool
have since enabled man to gather information beyond the range of human vision. It
provides the necessary spatial and geographical information for specic applications
that cannot easily be acquired without a bird's eye view of an area. Some of the
elds that vastly benet from aerial photography and video are law enforcement,
disaster control, cartography, agriculture and environmental studies [21]. The list is
not at all exhaustive.

1.1.2 Background
To obtain a stable image from a camera mounted on an aerial vehicle, it is essen-
tial to decouple the movement of the vehicle from the camera. Dynamic separation
from the vehicle movement can be obtained by mounting the camera on a plat-
form that maintains a constant pointing reference in inertial space. This is achieved
through a system of sensors, which measure the orientation of the platform with
regard to inertial space, and actuators, which rotate the platform to compensate
for vehicle movement. Several platforms have been developed for the stabilisation
of cameras for use in earth observation. Table 1.1 lists some of the specied ca-
pabilities of commercially available stabilising platforms (refer to Chapter 7 for a

1
CHAPTER 1. INTRODUCTION 2

Figure 1.1: An aerial photograph of Paris taken in 1868 by Nadar [20]

comparison with the platform developed in this thesis). These platforms are mainly
developed for use on helicopters and unmanned aerial vehicles (UAV's) and retail
up to ZAR 700 000 [25].

Table 1.1: Capabilities of commercially available platforms

Platform Maximum Stabilisation Field of view


Manufacturer rotation rate bandwidth Az/El Pitch/Roll
Tenix UAV stabilised Not
gimbal specied 10Hz ±20 ◦ /±90 ◦
Floatograph ±360 ◦ /
SkyDoc 150 ◦ /s 5Hz +20 ◦ ,−110 ◦
iMAR iICSC-DL ±360 ◦ /
150 ◦ /s 80Hz +80 ◦ ,−200 ◦
Southern Research Not ±180 ◦ /
Institute SEAIP 30 ◦ /s specied +30 ◦ ,−110 ◦

1.2 Objectives
The goal of this project is to develop a cost-eective stabilised platform on which
a camera can be mounted for earth observation purposes. The platform will be
CHAPTER 1. INTRODUCTION 3

developed specically for use on an airship. Airships are superb candidates for
performing long-endurance surveillance1 .
The fundamental specications for the stabilised platform are:
ˆ The platform must be able to maintain a stable directional pointing reference
and not be aected by the airship's rotations.

ˆ A user must be able to steer the pointing reference of the platform smoothly.
This means that the image obtained from the camera on-board the platform should
under all operating conditions be free of jitter as perceived by the operator, providing
an accurate representation of the area under surveillance and enabling the operator
to easily analyse and interpret the sensed data.

1.3 Principles
A device which has proved most suitable for the instrumentation of a reference
direction is the gyroscope [8]. Foucault dened the gyroscope in 1852 as a device
exhibiting strong angular momentum [8]. Scarborough dened the gyroscope more
specically as a mechanical device the essential part of which is a ywheel2 having a
heavy rim and so mounted, that its axis of rotation can turn in any direction about
a xed point on that axis [6]. The stabilised platform developed in this project is
based on the principle of gyroscopic stability. A three-degree-of-freedom gyroscope
is illustrated in Fig. 1.2. It has three gimbals that allows the spin axis to have three
degrees of rotational freedom about its centre of mass. A general discussion of some
of the properties of the gyroscope, based on theory from [6] and [8], follows.
Fig. 1.3 illustrates the basic law of motion of a practical gyroscope. The angular
velocity of a ywheel creates an angular momentum vector through its axis of spin.
In the absence of an applied torque, an angular momentum vector maintains a xed
orientation in inertial space, thereby providing a directional reference. This angular
momentum vector can be steered in a known fashion by applying a calibrated torque
to the ywheel. The forced motion of a gyroscope is called precession and arises in
obedience to the fundamental relation [6]
dH
= N, (1.1)
dt
1 The benets of airships are stated in detail in [12].
2A ywheel is a device that spins at a constant angular velocity.
CHAPTER 1. INTRODUCTION 4

Figure 1.2: A three-degree-of-freedom gyroscope [26]

where H is the angular momentum and N is the applied torque.

Gyro spin
angular
momentum
vector

Applied
torque
vector

Gyro
precession
vector

Figure 1.3: Representation of the basic law of motion of the gyroscope

It is shown in [6] that for a perfect gyroscope, the velocity of precession is di-
rectly proportional to the magnitude of the external applied torque and inversely
proportional to the velocity of spin and moment of inertia in the spin axis of the
ywheel. Consider the special case of Fig. 1.4, where the axis system is xed in the
spinning element and the moment of inertia in the x-axis is much greater than the
CHAPTER 1. INTRODUCTION 5

moment of inertia in the y-axis and z-axis. If an external torque T is applied to a


gyroscope exerting an angular momentum h, the rate of precession, Ω, is
T
Ω= . (1.2)
h

Here the torque is always applied in the y-axis and the precession is always in the
z-axis.
Furthermore, the motion of a gyroscope under external disturbances is stable and
periodic of nature. The periodic oscillations are referred to as nutation and must
be damped for the gyroscope to be of practical value [8]. The higher the velocity of
the ywheel, the smaller the amplitude and the higher the frequency of the simple
harmonic oscillations. The frequency of oscillation was found to be

C ψ̇
ω= , (1.3)
2πA

where C is the moment of inertia of the ywheel in its spin axis, ψ̇ is the angular
rate of the ywheel, and A is the moment of inertia of the axis perpendicular to the
spin axis of the ywheel.

h
x

T
y

Figure 1.4: Gyroscopic precession under applied external torques

It can thus be seen that a trade-o, dependent on the ywheel angular mo-
mentum, exists between the actuation power required to achieve a given rate of
precession and control eort required to ensure smooth precessional motion. The
CHAPTER 1. INTRODUCTION 6

higher the angular momentum generated by the ywheel, the smaller the oscillatory
modes of the gyroscope but the higher the required torque to achieve a given rate
of precession.
In the chapters that follow, a gyroscope for use as a stabilised platform will be
developed and control over the gyroscope will be attempted.

1.4 Overview of Thesis


The relevant coordinate systems are dened in Chapter 2 along with a derivation of
the equations of motion of the gyroscope. Chapter 3 details the development of the
physical system in terms of hardware and software. Chapter 4 provides insight into
practical gyroscopic motion with open loop measurements and simulations. The
parameters of the physical system used in the model developed in Chapter 2 are
also determined. In Chapter 5, the control methodology is presented, along with the
controller design details. Chapter 6 presents the practical results of the controllers
developed in this project. Chapter 7 provides a summary and recommendations for
future work.
Chapter 2
Theory and Model Development

This chapter begins by dening the relevant coordinate systems along with a method
to transform vectors from one coordinate system to another. The derivation of
Euler's equations of motion is then presented, which lead to a mathematical model
of the stabilised platform.

2.1 Coordinate Systems Denitions


In order to describe and control the orientation of the stabilised platform, four sets
of coordinate systems will be dened, namely:

ˆ The inertial axis system


ˆ The airship body axis system
ˆ The platform axis system
ˆ The gimbal axis system

2.1.1 Inertial Axes


An inertial reference frame is a set of axes which remains constant with time. The
attitude of a body can uniquely be determined by evaluating the orientation of
the body frame relative to the inertial frame. Within the inertial reference frame,
Newton's laws are valid [8].
For the problem at hand, the earth can be considered at and non-rotating.
These are valid assumptions since the airship will be rotating much faster than the

7
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 8

earth and the translational motion of the airship will be small with respect to a xed
point on the earth. The inertial axis system, OI − XI YI ZI , is then dened as a set
of earth-xed, right-hand orthogonal axes oriented north for the positive XI -axis,
east for the positive YI -axis and down for the positive ZI -axis.

2.1.2 Airship Body Axes


The airship body axis, OB − XB YB ZB , as dened in [12] and illustrated in Fig. 2.1,
is a xed right-hand orthogonal coordinate system with the positive XB -axis in the
direction of the nose of the airship, the positive YB -axis to the right of the positive
XB -axis and the ZB -axis orthogonally downward from the XB YB -plane. The origin,
OB , is at the centre of mass of the airship.

OB
IB XB
TB

YB \B

ZB

Figure 2.1: Airship body axes denition [12]

The airship body axis system is xed to the body of the airship and changes
with respect to inertial space as the orientation of the airship changes. The attitude
of the airship body axis system is described in terms of the angles φB , θB and ψB ,
which are measured by an AHRS developed by Bijker [12] in a separate project.
For the development of the steering controllers of the platform, the base of the
airship will be assumed to be inertially aligned. This assumption is necessary since
the AHRS measuring the airship's rotations will only be available for integration
with this project at a later stage. In reality, the airship's roll and pitch angles are
small with respect to inertial space, while the ZB -axis and the gimbal 3-axis (see
Section 2.1.4) remain coincident with a change in the airship's yaw angle, which
is unconstrained. Thus, for the development of the theory in the remainder of this
chapter, we will assume that the airship body axis system is aligned with the inertial
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 9

axis system. In practice, a human in the loop will issue the steering commands and
will be able to easily compensate for this assumption, since an airship's rotations
are slow [12].

2.1.3 Platform Axes


The platform axis system is dened as a right-hand orthogonal coordinate system,
with origin at the intersection of the gimbal axis of rotation and the spin axis of the
gyroscope. With reference to Fig. 2.2, the XP -axis is dened as the axis of rotation
of the inner gimbal of the gyroscope, the YP -axis is to the right of the XP -axis
in the plane of rotation of the ywheel and the ZP -axis is pointing orthogonally
downward from the XP YP -plane. The ZP -axis is now aligned with the angular
momentum vector generated by the ywheel and with the boresight of the camera.
This coordinate system is xed in the stabilisation plane.

M3
2
1
θG ψG,ω3
3
3
h0

θG,ω2
2 M2 φG,ω1 M1 1

φG
XP
YP
ZP
Figure 2.2: Gimbal axes and platform axes denitions

The attitude of the platform axis system with regard to inertial space is specied
by the angles φP , θP and ψP and with regard to the airship body axis by the angles
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 10

φG , θG and ψG .

2.1.4 Gimbal Axes


It is necessary to dene a convenient set of axes wherein the dynamic equations of
motion of the gyroscope can be evaluated. Two right-hand orthogonal coordinate
systems will be dened using the three axes of gimbal rotation, 1, 2 and 3, illustrated
in Fig. 2.2 with 1 towards the reader. The 1-axis is dened as the axis about which
the inner gimbal rotates, the 2-axis is dened as the axis about which the middle
gimbal rotates and the 3-axis is dened as the axis about which the outer gimbal
rotates.
The orthogonal orientation of the 3-axis with regard to the 12-plane disappears
as the middle gimbal rotates through an angle of θG . We therefore dene 10 perpen-
dicular to the 23-plane and 300 perpendicular to the 12-plane in order to form the
two orthogonal coordinate systems O − 12300 and O − 10 23 as illustrated in Fig. 2.3.

O
2
1 θG
1'

θG
3
3''

Figure 2.3: Orthogonal gimbal rotation axes denitions

The gyroscope is connected to inertial space through the airship. The 3-axis
is xed to the airship body axes and is always aligned with the ZB -axis. The
orientation of the gimbals relative to the airship body axis is specied by the angles
φG , θG and ψG .

2.2 Azimuth and Elevation Angles


An intuitive representation of the orientation of the platform is given by evaluating
the azimuth and elevation angles of the camera boresight. The boresight vector is
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 11

dened as  
h i XP
BP = 0 0 1 YP 
 
(2.1)
ZP
and is denoted in the inertial axis system as
 
h i XI
BI = BXI BYI BZI YI  . (2.2)
 

ZI

Referring to Fig. 2.4, the azimuth angle is dened as the angle between the positive
XI -axis and the projection of the boresight vector onto the XI YI -plane. The eleva-
tion angle is dened as the angle between the XI YI -plane and the boresight vector.
The angles are calculated mathematically as
B 
Az = arctan
YI
(2.3)
BXI

and
 BZI 
El = arctan q . (2.4)
2 2
BX I
+ BYI

The sign of the boresight components has to be taken into account to obtain the
angles in the correct quadrant.

Az O
YI
El

XI

ZI

Figure 2.4: Boresight azimuth and elevation angle denitions


CHAPTER 2. THEORY AND MODEL DEVELOPMENT 12

2.3 Euler Rotations


The orientation of a body rotating about a xed point is best described using three
angles, φ, θ and ψ , called Euler angles. Using the Euler angles, a coordinate trans-
formation that maps vectors in one reference frame to another can be dened [7].
This is done by three consecutive rotations. The Euler 3-2-1 rotation sequence will
be used, since it can be instrumented physically by three gimbals as was done for the
stabilised platform in this project. The gimbal angles, φG , θG and ψG , are simply
the Euler angles for the platform axis system when the airship body axis system is
aligned with the inertial axis system.
Referring to Fig. 2.5, the transformation involves rotating O − XI YI ZI through
an angle ψG about the ZI -axis to form O − XI0 YI0 ZI0 . The second rotation involves
rotating O − XI0 YI0 ZI0 through an angle θG about the YI0 -axis to form O − XI00 YI00 ZI00 .
Finally, O − XI00 YI00 ZI00 is rotated through an angle φG about the XI00 -axis to form O −
XI000 YI000 ZI000 , which is aligned with the platform axis system O − XP YP ZP . Beginning
with a vector VI coordinate in O − XI YI ZI , the transformation to VI000 ≡ VP
coordinated in O − XP YP ZP , can be described mathematically as

VI0 = A3 (ψG )VI (2.5)


VI00 = A2 (θG )VI0 (2.6)
VI000 = A1 (φG )VI00 , (2.7)

where
 
cos ψG sin ψG 0
A3 (ψG ) = − sin ψG cos ψG 0
 
(2.8)
0 0 1
 
cos θG 0 − sin θG
A2 (θG ) =  0

1 0 

(2.9)
sin θG 0 cos θG
 
1 0 0
A1 (φG ) = 0 cos φG sin φG  . (2.10)
 

0 − sin φG cos φG

Combining equation (2.8) to (2.10) yield the direction cosine matrix (DCM), given
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 13

YI YI' YI'≡YI''
XI'' φG XI''≡XI'''≡XP
θG
O
XI' O
O O
YI'''≡YP

XI ψG ZI''

ZI'''≡ZP
ZI ZI≡ZI'

Figure 2.5: The Euler 3-2-1 rotation sequence

by

A321 (φG , θG , ψG ) = A1 (φG )A2 (θG )A3 (ψG )


 
cos θG cos ψG cos θG sin ψG − sin θG
= − cos θG sin ψG + sin φG sin θG cos ψG cos φG cos ψG + sin φG sin θG sin ψG sin φG cos θG  .
 

sin φG sin ψG + cos φG sin θG cos ψG − sin φG cos ψG + cos φG sin θG cos ψG cos φG cos θG
(2.11)

A vector coordinated in the inertial axis system, O − XI YI ZI , can now be trans-


formed to the platform axis system, O − XP YP ZP , by

VP = A321 VI . (2.12)

The inverse transformation can be carried out to transform a vector coordinated in


the platform axis system to the inertial axis system. The inverse of the DCM is
simply it's transpose, which gives the transformation as

321 VP .
VI = AT (2.13)

2.4 Euler Rotation Rates


The total angular velocity of the platform in terms of the Euler angles can be written
as
ω = ψ˙G ZI + θ˙G YI0 + φ˙G X00I . (2.14)
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 14

Applying Eqs. (2.5), (2.6) and (2.7), the unit vectors in Eq. (2.14) can be transformed
to platform axes as

ZI = − sin θG XP + sin φG cos θG YP + cos φG cos θG ZP (2.15)


YI0 = cos θG YP − sin φG ZP (2.16)
X00I = XP . (2.17)

The angular velocity of the platform in platform coordinates is then

ω = ωXP XP + ωYP YP + ωZP ZP . (2.18)

Substituting Eqs. (2.15), (2.16) and (2.17) into Eq. (2.14) and rewriting, gives the
components of the total angular velocity in platform coordinates as

ωXP = φ̇G − sin θG ψ̇G (2.19)


ωYP = cos φG θ̇G + sin φG cos θG ψ̇G (2.20)
ωZP = − sin φG θ̇G + cos φG cos θG ψ̇G , (2.21)

which in matrix form gives the transformation of the angular rates φ˙G , θ˙G , and ψ˙G
to platform body coordinates as

φ˙G
    
ωXP 1 0 − sin θG
 ωYP  = 0 cos φG sin φG cos θG   θ˙G  . (2.22)
    

ωZP 0 − sin φG cos φG cos θG ψ˙G

Taking the inverse of the matrix in Eq. (2.22), gives the transformation of the
platform angular rate vector in platform coordinates to the gimbal axis system as

φ˙G
    
1 sin φG tanθG cos φG tanθG ωXP
− sin φG   ωYP  . (2.23)
 ˙  
 θG  = 0 cos φG
 

ψ˙G 0 sin φG secθG cos φG secθG ωZP

The singularity in the above transformation when θ = π2 or multiples thereof, is not


of concern as the platform rotation in θG is restricted to ±50 ◦ .
The angular velocities of the inner, middle and outer gimbals are given by

ω = ω1 1 + ω2 2 + ω3 3. (2.24)
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 15

Realising that ZI ≡ 3, YI0 ≡ 2 and X00I ≡ 1, the Euler angle rates φ˙G , θ˙G and ψ˙G is
equivalent to the rotation rates of the gimbals, ω1 , ω2 and ω3 . Thus Eq. (2.23) gives
the transformation of the platform angular velocity, coordinated in the platform axis
system, to the gimbal axis system.

2.5 Euler's Equations of Motion


The time rate of change of angular momentum of a rigid body is related to the
torques applied to the body through Newton's second law for rotational motion as
dH
= N, (2.25)
dt

where N is the torque vector acting on the body and H is the angular momentum
vector of the body dened as
H = Iω , (2.26)
where ω is the total angular velocity of the body and
 
Ixx Ixy Ixz
I = Iyx Iyy Iyz 
 
(2.27)
Izx Izy Izz

is the moment of inertia tensor.


Eq. (2.25) describes the rotational motion of a rigid body in an inertial reference
system. It is more convenient to express this equation along body axes, since the
moment of inertia tensor is most conveniently expressed along these axes. It is
necessary to nd the time derivative of H along the body axes to achieve this. The
theorem of Coriolis, given as
d d
(·) = (·) + ω × (·), (2.28)
dt body dt inertial

relates the time derivative of an arbitrary vector (·) in one reference frame to its
time derivative in another [3]. Applying Eqs. (2.26) and (2.28) to Eq. (2.25) yields

I = N − ω × Iω . (2.29)
dt

Eq. (2.29) is the vector formulation of Euler's equations of motion for a rigid body
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 16

where the vector quantities are coordinated in the body axis system [7].
For a body equipped with a ywheel1 , the total angular momentum is the sum
of the angular momentum generated by the rotational motion of the body and the
angular momentum generated by the ywheel. This is expressed in equation form
as
H = Iω + h, (2.30)
where h is the angular momentum of the ywheel. Including the angular momentum
of the ywheel in Euler's equations gives
dω dh
I =N− − ω × (Iω + h). (2.31)
dt dt

Since the angular momentum of a ywheel is constant,


dh
=0 (2.32)
dt

and Eq. (2.31) reduces to



I = N − ω × (Iω + h). (2.33)
dt

Eq. (2.33) describes the motion of a rigid body equipped with an element that
produces a constant angular velocity.

2.6 Gyroscope Equations of Motion


To obtain a dynamic model of the gimballed structure, we need to evaluate Eq. (2.33)
along each axis that the gyroscope is permitted to precess, i.e. along each of the
gimbal rotation axes as dened in Section 2.1.4. Each gimbal is really a separate
rigid body and requires a set of three Euler equations to describe its motion. To
simplify the analysis we will assume that each gimbal has a spherical moment of
inertia tensor, so that cross coupled inertia eects can be ignored. That is,
 
I11 0 0
I =  0 I22 0  . (2.34)
 

0 0 I33
1 The addition of a ywheel constitutes that the body is not rigid, but the dynamic equations
can still be used [7].
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 17

The resultant Euler equations will then only be along the gimbal rotation axes,
O − 123. Along these axes  
Nm1 + Nw1
N = Nm2 + Nw2  , (2.35)
 

Nm3 + Nw3
where Nm are the steering torques applied to the gimbals and Nw are the friction
torques acting on the gimbals. It is important to realise that N is not the coordinates
of a single geometric vector and do not represent one single physical torque. It is
a mathematical vector whose elements are the magnitudes of three real physical
torques of a specially dened set, which are generally not orthogonal.
To describe the rotational motion of the inner and middle gimbals, Eq. (2.33)
will be evaluated along O − 12300 and to describe the rotations of the outer gim-
bal, Eq. (2.33) will be evaluated along O − 10 23, as dened in Section 2.1. It is
necessary to describe the angular velocity vector discussed in Section 2.4 as well
as the angular momentum vector generated by the ywheel, along these coordi-
nate systems. Figs. 2.6 and 2.7 illustrate the coordination of vectors between the
relevant coordinate systems, and will be used as an aid in the following sections.
Fig. 2.6 illustrates a transformation equivalent to Eq. (2.7) and Fig. 2.7 illustrates
a transformation equivalent to the inverse of Eq. (2.6).

O,XP,1 O,2
2 1
φG θG

YP 1'
θG
φG
3
3'' ZP 3''

Figure 2.6: Vector transformation from Figure 2.7: Vector transformation from
platform axes to O − 12300 O− 12300 to O − 10 23
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 18

Equations of Motion Evaluated in O − 12300


ω3 3 can be coordinated along O − 12300 by applying the inverse transformation
illustrated in Fig. 2.7,
  
cos θG 0 − sin θG 0
A2 (θG )ω3 =  0 1 0  0 
  

sin θG 0 cos θG w3
 
−ω3 sin θG
= 0 . (2.36)
 

ω3 cos θG

The components of the angular velocity vector coordinated in O − 12300 are now
given by  
h i 1
ω12300 = (ω1 − ω3 sin θG ) ω2 ω3 cos θG 2. (2.37)
 

300
The angular momentum of the ywheel is always aligned with the ZP -axis and
can be written as
h0 = h0 ZP . (2.38)
Referring to Fig. 2.6, h0 coordinated in O − 12300 can be obtained by applying the
transformation
  
1 0 0 0
T
A1 (φG )h0 = 0 cos φG − sin φG   0 
  

0 sin φG cos φG h0
 
0
= −h0 sin φG  . (2.39)
 

h0 cos φG

The angular momentum of the ywheel, coordinated in O − 12300 , is now given by


 
h i 1
h12300 = 0 −h0 sin φG h0 cos φG  2  . (2.40)
 

300

Evaluation of the cross product between the angular momentum and angular
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 19

velocity vectors coordinated in O − 12300 yield

1 2 300
ω × h = ω1 − ω3 sin θG ω2 ω3 cos θG
0 −h0 sin φG h0 cos φG
= (ω2 h0 cos φG + ω3 h0 sin φG cos θG )1
− (ω1 h0 cos φG − ω3 h0 cos φG sin θG )2
+ (−ω1 h0 sin φG + ω3 h0 sin φG sin θG )300 . (2.41)

Substituting Eq. (2.41) into Eq. (2.33), and realising that the 300 -axis is not a gimbal
axis of rotation, gives

I11 ω̇1 = N1 − ω2 h0 cos φG − ω3 h0 sin φG cos θG (2.42)


I22 ω̇2 = N2 + ω1 h0 cos φG − ω3 h0 cos φG sin θG . (2.43)

Equations of Motion Evaluated in O − 10 23


Referring to Fig. 2.7, ω1 1 coordinated in O − 10 23 can be obtained by the transfor-
mation
  
cos θG 0 sin θG ω1
T
A2 (θG )ω1 =  0 1 0  0 
  

− sin θG 0 cos θG 0
 
ω1 cos θG
= 0 . (2.44)
 

−ω1 sin θG

The components of the angular velocity vector coordinated in O − 10 23, are now
given by  0
h i 1
ω10 23 = (ω1 cos θG ) ω2 (ω3 − ω1 sin θG )  2  . (2.45)
 

3
The components of h0 coordinated in O − 10 23 can be obtained by rotating
O − XP YP ZP through φG to coincide with O − 12300 , as illustrated Fig. 2.6 and
then through θG to coincide with O − 10 23, as illustrated in Fig. 2.7. Applying the
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 20

transformation yield
   
cos θG 0 sin θG 1 0 0 0
T T
A2 (φG )A1 (θG )h0 =  0 1 0  0 cos φG − sin φG   0 
   

− sin θG 0 cos θG 0 sin φG cos φG h0


 
h0 cos φG sin θG
=  −h0 sin φG  . (2.46)
 

h0 cos φG cos θG

The angular momentum of the ywheel coordinated in O − 10 23 is now given by


 0
h i 1
h10 23 = (h0 cos φG sin θG ) −h0 sin φG (h0 cos φG cos θG )  2  . (2.47)
 

Evaluation of the cross product between the angular momentum and angular
velocity vectors coordinated in O − 10 23 yield

10 2 3
ω10 23 × h10 23 = ω1 cos θG ω2 ω3 − ω1 sin θG
h0 cos φG sin θG −h0 sin φG h0 cos φG cos θG
= ω2 h0 cos φG cos θG + ω3 h0 sin φG − ω1 h0 sin φG sin θG 10


− ω1 h0 cos φG (cos2 θG + sin2 θG ) − ω3 h0 cos φG sin θG 2




+ −ω1 ho sin φG cos θG − ω2 h0 cos φG sin θG 3. (2.48)




Substituting Eq. (2.48) into Eq. (2.33) and realising that 10 is not a gimbal axis of
rotation, gives

I22 ω̇2 = N2 + ω1 h0 cos φG − ω3 h0 cos φG sin θG (2.49)


I33 ω̇3 = N3 + ω1 ho sin φG cos θG + ω2 h0 cos φG sin θG , (2.50)

where the trigonometric property sin2 θ + cos2 θ = 1 has been applied to Eq. (2.48).
Eq. (2.49) is identical to Eq. (2.43), which is expected since the 2-axis is common
to both the O − 10 23 and O − 12300 . Eqs. (2.42), (2.49) and (2.50) are the dynamic
gimbal equations of motion for the stabilised platform.
CHAPTER 2. THEORY AND MODEL DEVELOPMENT 21

2.6.1 Disturbance Torques on Gimbals due to Viscous


Friction
Torques will be generated in the gimbal rotation axes due to friction in the rotational
elements between the gimbals and must be accounted for in the model. Here we will
account for rotations of the gimbal system due to rotations of the airship with regard
to inertial space and due to steering of the platform.
The angular velocity of the airship, referred to the inertial axis system will de-
noted as  
ωBX
I
ωB = ωBY 
 
(2.51)
ωBZ
and when referred to the gimbal axis system, denoted as
 
ωB1
123
ωB = ωB2  . (2.52)
 

ωB3

The torque due to viscous friction in the gimbal axis system is


h ih i
Nw = kw1 kw2 kw3 ωB123
−ω , (2.53)

where kwn is the coecient of viscous friction of the nth gimbal and ω is the angular
velocity of the platform in gimbal coordinates.
The components of ωB 123
are obtained as follows. The component of ωB in the
1-axis is obtained by coordinating ωB in the platform axis system through the DCM
given in Eq. (2.11) and taking the resulting component in the XP -axis, since the
1-axis is aligned with the XP -axis of the platform. The transformation yield

ωB1 = ωBX cos θG cos ψG + ωBY cos θG sin ψG − ωBZ sin θG . (2.54)

O − XB YB ZB will be aligned with the 2-axis after a rotation through ψG . The


component of ωB in the 2-axis can be obtained by applying the transformation
matrix given by Eq. (2.8) to Eq. (2.51), which yield

ωB2 = −ωBX sin ψG + ωBY cos ψG . (2.55)


CHAPTER 2. THEORY AND MODEL DEVELOPMENT 22

Since the ZB -axis is aligned with the 3-axis, the component of ωB in the 3-axis is
simply
ωB3 = ωBZ . (2.56)
Applying Eqs. (2.54), (2.55) and (2.56) to Eq. (2.53) gives the frictional torque
components in the gimbal axis system O − 123 as

(2.57)

Nw1 = kw1 (cos θG cos ψG ωXB + cos θG sin ψG ωYB − sin θG ωZB ) − ω1
(2.58)

Nw2 = kw2 (−ωXB sin ψG + ωYB cos ψG ) − ω2
Nw3 = kw3 (ωZB − ω3 ). (2.59)

2.7 Summary
This chapter presented the theory behind the development of a mathematical model
for the stabilised platform, as well as the derivation of the model. The necessary
transformations were dened to obtain all vector quantities in the gimbal axis sys-
tem. The model will be evaluated critically in Chapter 4.
Chapter 3
Platform Development

This chapter describes the development of the platform structure, sensors and ac-
tuators as well as the development of the hardware and software to interface these
components.

3.1 Three-Degree-of-Freedom Gyroscope


A gyroscope was designed and built in cooperation with the Central Mechanical
Services (CMS) at the University of Stellenbosch. The nal product is shown in
Fig. 3.1. Apart from general gyroscopic construction rules (i.e. each gimbal must be
symmetrical and balanced in weight about its axis of rotation), the following design
specications for the development of a gyroscope for use as a stabilised platform
were set:

ˆ The gyroscope must have three degrees of rotational freedom for roll, pitch
and yaw movement of the platform.

ˆ The construction must allow for a DC motor and potentiometer to be mounted


on each gimbal axis as dened in Chapter 2.

ˆ 360 ◦ of rotation must be allowed in the azimuth plane.

ˆ At least ±45 ◦ of rotation must be allowed in pitch.


ˆ At least ±25 ◦ of rotation must be allowed in roll.
Refer to Appendix A for a detailed description of the gyroscope.

23
CHAPTER 3. PLATFORM DEVELOPMENT 24

Figure 3.1: Three-degree-of-freedom gyroscope

3.2 Actuators
This section describe the development of the hardware required to perform all nec-
essary actuation. The actuators are grouped as:

ˆ Gimbal motors
ˆ Flywheel
The motor drives will be discussed rst, followed by a discussion of the ywheel and
gimbal motors. Analogue controllers are then discussed to decouple the actuator
dynamics from the main control loop.

3.2.1 Motor Drives


The drive circuitry for each motor consists of a DMOS H-bridge driven by a PWM
signal. The PWM signal is generated by a UC3524A microchip. The H-bridge used
CHAPTER 3. PLATFORM DEVELOPMENT 25

is the LMD18200, which has a current sense output pin with a sensitivity of 377 µA
per ampere of current through the motor. The current sense output is converted
to a voltage through a resistor to ground, which is used as the feedback signal in
each torque control system. The voltage measured over the current sense resistor is
directly proportional to the torque generated by the motor which is calculated as
VI _sense km
N= , (3.1)
(377 × 10−6 )Rsense

where VI _sense is the measured voltage, km is the torque constant of the motor and
Rsense is the value of the resistor used to perform the current conversion.
The block diagram of the gimbal motor drives and of the ywheel motor drive are
shown in Fig. 3.2 and Fig. 3.3 respectively. Passive low-pass ltering is performed
on the input and output signals of each drive system. The design of the electronic
circuits is detailed in Appendix C.
Plant 1

M1

Vin1 VI sense1
Low-pass PWM Low-pass
H-Bridge
Filter Generator Filter

Dir1 Brake1

Plant 2

M2

Vin2 Low-pass Low-pass VI sense2


PWM H-Bridge
Filter Generator Filter

Dir2 Brake2

Plant 3

M3

Vin3 Low-pass PWM Low-pass VI sense3


H-Bridge
Filter Generator Filter

Dir3 Brake3

Figure 3.2: Block diagram of gimbal motor drive systems


CHAPTER 3. PLATFORM DEVELOPMENT 26

Plant 4
Motor

Vspeed Low-pass PWM Low-pass Vtacho


H-Bridge
Filter Generator Filter
Tacho
Dir Brake

Figure 3.3: Block diagram of ywheel motor drive system

3.2.2 Flywheel
With the following assumptions, the ywheel provides open loop stability to the
platform in maintaining a constant reference direction [8]:
ˆ The ywheel spins about an axis of symmetry.
ˆ The ywheel spins at a constant speed.
ˆ Flywheel spin angular momentum is much greater than non-spin angular mo-
mentum.
Only the rst assumption cannot be guaranteed in the implementation of the plat-
form due to the shape and weight of the payload, but great care will be taken in
balancing the weights about the spin axis. The ywheel consist of a balanced brass
disc (A disc developed previously in the ESL at the University of Stellenbosch was
used as a rst iteration) attached to a brushed DC motor (Faulhaber Minimotor
2842-012C) equipped with a tachometer. The tachometer outputs a voltage propor-
tional to the speed of the motor, which can be used in a feedback loop to control
the motor speed.
The disc's moment of inertia is If = 3.8×10−4 kg·m2 and the maximum reference
speed that can be commanded by the microprocessor is ωf = 3300rpm. Therefore
the angular momentum generated by the ywheel is

ho = ωf If
= 0.13132N·m·s. (3.2)

With the ywheel angular momentum as in Eq. (3.2), a reasonable balance is ob-
tained between the required actuator power and control eort, as discussed in Sec-
tion 1.3. It will be shown in Chapter 4 that for the ywheel angular momentum as
CHAPTER 3. PLATFORM DEVELOPMENT 27

in Eq. (3.2), torques of less than 10 mN·m are required to steer the gimbals at the
required angular rate, also discussed in Chapter 4.

3.2.3 Gimbal Motors


The gimbal motors will be used to steer the platform to a new pointing reference
and to compensate for disturbance torques on the gimbals. The axle of each motor
must be able to rotate freely with minimal friction along with the gimbal it is
attached to, when no torque is commanded. The main criteria in selecting the
motors to be used are the friction torques and torque delivering capabilities. As
stated in the previous section, torques of up to 10 mN·m will be required. With
these factors in consideration, ordinary brushed DC motors were selected to be used
in the implementation, instead of expensive torque motors. For the inner and middle
gimbals (motor 1 and 2), the Faulhaber Minimotor 2842-024C was selected and for
the outer gimbal (motor 3), the Faulhaber Minimotor 3042-036C. The 2842-024C
motor can deliver torque up to 26 mNm and has a friction torque of 1.2 mNm. The
3042-036C motor can deliver torque up to 41 mNm and has a friction torque of
2.1 mNm. These torque ratings are sucient to steer the platform at slow angular
rates.

3.2.4 Torque Controllers


The dynamics of the actuators can be separated from the main control loop by
designing torque controllers with a much higher bandwidth (at least 10 times greater)
than that of the main controller, for which a high bandwidth would be redundant.
Slow sampling rates can then be used in the main control loop, which simplies
the ltering and A/D and D/A converters needed. The bandwidth of the main
controller, discussed in detail in Section 5.2.1, is less than 2 Hz. A model for each
plant in Fig. 3.2 must be determined before controllers can be designed.
The controllers designed in the following sections were implemented as analogue
circuits, described in Appendices B and C.

Gimbal Motors Plant Identication


Referring to Fig. 3.2, the motor drives' responses to step inputs are shown in Fig. 3.4
for plant 1 and 2 and in Fig. 3.5 for plant 3. These are dominant rst order responses
CHAPTER 3. PLATFORM DEVELOPMENT 28

with transfer functions


VI _sense K
H(s) = = (3.3)
Vin s+σ
K
= σ
, (3.4)
τs + 1

where K/σ is the plant gain and τ = σ1 is the electrical time constant of the plant.
The time constant of a rst order system is dened as the time at which the unit step
response reaches the value Kσ (1 − 1e ) [1]. Substituting the values of K and τ obtained
from the open loop step responses into Eq. (3.3), gives the transfer functions of plant
1 and 2 as
422
H1 (s) = H2 (s) = (3.5)
s + 521.227
and of plant 3 as
225
H3 (s) = . (3.6)
s + 712.251
Both systems show a steady state error for step inputs.

1 0.4

0.8 0.3
Current sense voltage [V]

Current sense voltage [V]

0.6
0.2

0.4
0.1

0.2
0
0
−0.1
−5 0 5 10 15 0 2 4 6 8
Time [s] −3 Time [s] −3
x 10 x 10

Figure 3.4: Open loop step response of Figure 3.5: Open loop step response of
plant 1 and 2 plant 3

Controller Design
Three PI-controllers, one for each gimbal motor, were designed and implemented.
This will ensure zero steady state errors for step torque commands and provide
control over the bandwidth of the closed loop systems. The closed loop system is
shown in Fig. 3.6. The block diagram applies to all three motor drive systems. The
CHAPTER 3. PLATFORM DEVELOPMENT 29

Plant

Vref + Ve Vin VI_sense


Low-pass PI PWM Low-pass
Σ H-Bridge
Filter - Controller Generator Filter

Dir Brake

Figure 3.6: Block diagram of torque control loop

PI controller transfer function is given by


Vin KI
D(s) = = KP +
Ve s
KD (s + a)
= . (3.7)
s

Using pole cancellation and selecting a = σ , the closed loop transfer function of the
system is given as
KKD
Gcl (s) = . (3.8)
s + KKD
The controller gain can be selected to obtain the appropriate closed loop band-
width. Designing for a closed loop bandwidth of 180 Hz for plants 1 and 2 and for
a bandwidth of 65 Hz for plant 3, the resulting controller transfer functions are
 s + 521.227 
D1 (s) = D2 (s) = 2.7 (3.9)
s

and
 s + 712.251 
D3 (s) = 1.8 . (3.10)
s

The systems' closed loop poles are situated at σ1,2 = 1139.4 and σ3 = 408.4.
The simulated and measured step responses are shown in Fig. 3.7 for the closed
loop systems of plant 1 and plant 2 and in Fig. 3.8 for the closed loop system of
plant 3. All three systems exhibit zero steady state error and the desired bandwidth
specications are met with the controller gains small enough not to cause saturation
in the control signal Vin .
CHAPTER 3. PLATFORM DEVELOPMENT 30

2.5 2.5

Current sense voltage [V]


Current sense voltage [V]

2 2

1.5 1.5

1 1

0.5 0.5
Measured step response Measured step response
Simulated step response Simulated step response
0 0
0 5 10 15 0 5 10 15 20
Time [s] x 10
−3 Time [s] x 10
−3

Figure 3.7: Closed loop step response Figure 3.8: Closed loop step response
of systems driving motor 1 and 2, for a of system driving motor 3, for a step in
step in Vref = 1V Vref = 1V

3.2.5 Speed Controller


It is important that the ywheel maintains a constant speed. Any change in speed
will result in a change of angular momentum, which will result in a torque being
applied to the gimbals. An analogue controller will be designed to regulate the
speed of the ywheel. Once again, a model for the ywheel at the relevant operating
conditions must rst be obtained.

Flywheel Plant Identication


The open loop step response of the ywheel is shown in Fig. 3.9, for a 0.2 V step in
Vspeed about 3000 rpm. From the step response the time constant and plant gain were
determined as τ = 6.95s and K = 0.234. Substituting these values into Eq. (3.3)
gives the transfer function of the plant in Fig. 3.3 as
0.234
H4 (s) = . (3.11)
s + 0.144

The plant's step response indicates that system's settling time needs to be decreased.

Controller Design
A PI controller was designed and implemented to increase the bandwidth of the
open loop system and to ensure a zero steady state error in the output speed. The
block diagram of the closed loop system is shown in Fig. 3.10. Including the PI
CHAPTER 3. PLATFORM DEVELOPMENT 31

3.5
V
tacho
Vspeed

Voltage [V] 3

2.5
0 5 10 15 20 25 30
Time [s]

Figure 3.9: Open loop step response of ywheel motor and drive
Plant 4
Motor

Vspeed + Ve Vin H-Bridge Low-pass Vtacho


Low-pass PI PWM
Σ Filter
Filter - Controller Generator
Tacho
Dir Brake

Figure 3.10: Block diagram of speed control loop

controller given in Eq. (3.7), the open loop transfer function of the system is
 s+a 
Gol (s) = 0.234KD . (3.12)
s(s + 0.144)

The root locus of the plant and controller is shown in Fig. 3.11. The speed controller
was designed to have a settling time of less than 1 s and a damping factor of ζ = 0.7.
Closed loop poles at
s1,2 = −4.6 ± 4.69 (3.13)
will satisfy this design specication. The resulting PI controller, obtained by the
method of root locus design [1], is
 s + 4.723 
D4 (s) = 38.7 . (3.14)
s
CHAPTER 3. PLATFORM DEVELOPMENT 32
8

Imag Axis
0
−a
−2

−4

−6

−8
−14 −12 −10 −8 −6 −4 −2 0
Real Axis

Figure 3.11: Root locus of speed controller

Fig. 3.12 illustrates the measured response of the closed loop system during spin-
up. The controller is activated at 1.5 s. The controller saturates during the rst
6.5 s while the ywheel reaches nominal speed. At 8 s the ywheel reaches the
commanded reference speed and the controller regulates the speed of the ywheel
with zero steady state error at 3300 rpm. Overshoot can be observed just after 8 s
when the controller reaches 3300 rpm, which is due to the saturation of the controller
during the spin-up phase.
3500

3000

2500
Speed [rpm]

2000

1500

1000

500

0
0 5 10 15
Time [s]

Figure 3.12: Closed loop step response of speed control loop


CHAPTER 3. PLATFORM DEVELOPMENT 33

3.3 Sensors
The gimbal angles and angular rates must be available for feedback to implement
a full state feedback control system for the platform. The sensors implemented to
measure the platform states are discussed in the following sections.

3.3.1 Angle Sensors


The gimbal angles φG , θG and ψG are measured using three 10 kW potentiometers
(Vishay Spectrol Model 157) mounted on each gimbal. By applying a reference
voltage to the potentiometer and measuring the voltage across the center tap of the
potentiometer and ground, the gimbal angles can directly be calculated. Allowing
for 360 ◦ of rotation with a voltage reference of 2.4 V, the gimbal angle in terms of
the measured voltage is
θgimbal = (150Vpot )◦ . (3.15)
The block diagram of the angle sensor is shown in Fig. 3.13. The voltage reference
is generated by a 2.4 V zener diode circuit. The circuitry is detailed in Appendix C.
The resolution that can be obtained by sampling the measured voltage through a

Voltage Potensio- Vpot Low-pass 12-bit


reference meter filter A/D

Figure 3.13: Block diagram of angle sensor signal path

12-bit A/D channel with a voltage reference of 2.4 V is


360
θres =
212
= 0.088◦ /bit. (3.16)

3.3.2 Inertial Measurement Unit (IMU)


Three single axis IMU boards, developed by Bijker [12], are mounted in a perpen-
dicular conguration to measure the angular rates and accelerations in all three
axes of the platform. The single axis IMU boards consists of a ±75 ◦ /s rate gyro
(ADXRS401) and an ±1.7 g accelerometer (ADXL203).
The accelerometers output measurements due to static (e.g. gravity) and dy-
namic (e.g. vibration) accelerations. Utilising the gravity measurement as an input
CHAPTER 3. PLATFORM DEVELOPMENT 34

vector, the accelerometers can be used as a tilt sensor in roll and pitch. There are
several drawbacks to this implementation. Firstly, all dynamic acceleration, e.g.
displacement of the airship and vibration of the platform due to the ywheel must
be compensated for. Secondly, an accelerometer is most sensitive to tilt when its
sensitive axis is perpendicular to the earth's gravity vector. The resolution of the
sensor declines as the angle between its axis of sensitivity and the earth's gravity
vector changes away from 90 ◦ . The accelerometer measurements were not used in
the development of controllers for the stabilised platform, since the gyros provide
sucient information to use in a feedback controller. They are however available for
sampling through the 8-bit A/D channels of the microprocessor.
Fig. 3.14 shows the block diagram of the IMU with conditioning blocks. The gyro
r75q/s rate
measurements Voltage Low-pass 12-bit
IMU bias adjust filter A/D

Figure 3.14: Block diagram of IMU signal path

output signals are biased at 2.5 V and must be adjusted to the voltage reference of
the Cygnal A/D channels, which is 1.2 V. The adjusted signals are then ltered by
anti-aliasing lters before being sampled by the microprocessor at a sampling rate
of 1 kHz. The sampled signal is downsampled in the microprocessor to produce an
eective sampling rate of 50 Hz. The cut-o frequency of the anti-aliasing lters are
25 Hz. The hardware is detailed in Appendix C.

Calibration
Sensor calibration is necessary to compensate for deviations from the specied out-
put parameters and for misalignments on the platform [12]. The sensors were cal-
ibrated by placing the IMU on a rate table and rotating it through 360 ◦ for each
axis. Since the sensors are sensitive to linear acceleration eects1 , the axis of rota-
tion must be aligned with the earth's gravity vector. A calibration matrix can be
calculated by integrating the resulting measurements. The actual rate vector is then
     
ωxcal ωxsensor ωxof f set
ωycal  = C ωysensor  − ωyof f set  , (3.17)
     

ωzcal ωzsensor ωzof f set


1 The rate gyros used have sensitivity to linear acceleration of 0.2 ◦ /s/g [17].
CHAPTER 3. PLATFORM DEVELOPMENT 35

where C is a 3 × 3 matrix which are equal to the identity matrix if no calibration is


necessary. The calibration matrix was calculated as
 
0.97926 0.003656 0.02940
C = −0.03131 0.98340 −0.00583 . (3.18)
 

0.01232 −0.02034 0.97110

The calibration results are shown in Figs. 3.15 to 3.20.

400 400
X−axis X−axis
Y−axis Y−axis
300 Z−axis 300 Z−axis
Angle [degrees]

Angle [degrees]
200 200

100 100

0 0

−100 −100
0 20 40 60 80 100 120 0 20 40 60 80 100 120
Time [s] Time [s]
Figure 3.15: Integrated rate gyro mea- Figure 3.16: Integrated rate gyro mea-
surement in X-axis before calibration surement in X-axis after calibration

400 400
X−axis X−axis
Y−axis Y−axis
300 Z−axis 300 Z−axis
Angle [degrees]

Angle [degrees]

200 200

100 100

0 0

−100 −100
60 80 100 120 140 160 60 80 100 120 140 160
Time [s] Time [s]
Figure 3.17: Integrated rate gyro mea- Figure 3.18: Integrated rate gyro mea-
surement in Y-axis before calibration surement in Y-axis after calibration
CHAPTER 3. PLATFORM DEVELOPMENT 36

400 400
X−axis X−axis
Y−axis Y−axis
Angular Posision [deg]

Angular Posision [deg]


300 Z−axis 300 Z−axis

200 200

100 100

0 0

−100 −100
0 20 40 60 80 0 20 40 60 80
Time [s] Time [s]
Figure 3.19: Integrated rate gyro mea- Figure 3.20: Integrated rate gyro mea-
surement in Z-axis before calibration surement in Z-axis after calibration

3.4 Power Distribution


All the components are powered from a single 12 V power supply. The power distri-
bution is illustrated in Fig. 3.21. The power consumption with the gimbal motors
inactive is 4.5 W.
Motor Potentio-
Drives meters

3.3V
μC
regulator

12V Supply
5V
IMU
regulator

Figure 3.21: Block diagram of power distribution network

3.5 Interface
The main controller, responsible for steering and stabilisation of the platform, in-
terfaces with the actuators and sensors through a microprocessor which is situated
on-board the platform. The block diagram of the system is shown in Fig. 3.22.

3.5.1 Microprocessor
The microprocessor used is the Cygnal C8051F020. The following peripherals are
utilised in the nal implementation of the platform:
CHAPTER 3. PLATFORM DEVELOPMENT 37

Sensors

Angle
Actuators Reference sensors
commands Sensors
Gimbal A/D data
PCA
motors Converters Gyros
Control
Microprocessor
commands
Flywheel Accelero-
Digital meters
I/O UART
Ports

RS-232
Ground station

Main Command
Controller Station

Figure 3.22: Block diagram of controller and actuators/sensors interface

ˆ Six 12-bit A/D channels. Three are used for sampling of the rate measurements
from the gyros and another 3 for angle measurements from the potentiometers.

ˆ Four capture/compare modules of the Programmable Counter Array (PCA).


These are used for generating analogue voltages which serves as reference com-
mands to the speed and torque controllers.

ˆ Two UART's, of which one is used to communicate with the ground station
and another can be implemented to communicate with the OBC that hosts
the airship's AHRS.

ˆ One digital output port, of which three pins control the directions of the gimbal
motors and another four control the brakes of the gimbal motors and ywheel.

The ow chart of the software running on the microprocessor is illustrated in


Fig. 3.23. The sensor data are sampled at an oversample frequency of 1 kHz and
downsampled to 50 Hz. The downsample process reduces noise and increases the
eective number of bits of the A/D measurement by 2 [19]. The sampled data are
encoded as ASCII values for compatibility with the MATLAB Real-Time Toolbox
and transmitted over the UART at a rate of 115 200 BAUD.
Parallel to the sampling process, the motor reference torques are received from
the main controller and processed. Port0 of the microprocessor is programmed
to set the brake and direction pins of each motor drive. Each capture/compare
module of the PCA is then programmed to output a PWM signal with a duty cycle
CHAPTER 3. PLATFORM DEVELOPMENT 38

Start

Run
initialisation
routines

No UART0
Start = true?
interrupt?

Yes Yes

No ADC Test received


interrupt? data

Yes

Sample and Start Yes


Start = true
accumulate data sequence?

No

No Stop Yes
20 samples? Start = false
sequence?

Yes No

Average Torque Yes


Set Port0
sampled data command?

No

Package data Set capture/


Stop UART0
and transmit compare
ISR
through UART modules

Figure 3.23: Microprocessor embedded software ow chart

proportional to the requested torque. The PWM signal is low-passed ltered to


obtain a DC reference voltage for the speed and torque controllers.

3.5.2 Ground Station


The ground station software provides a user with the following functionality:

ˆ Activation/deactivation of on-board microcontroller.


ˆ Resetting IMU gyro osets.
ˆ Controlling platform roll, pitch and yaw angles.
ˆ Viewing platform angles, angular rates and commanded torques.
ˆ Logging telemetry data.
CHAPTER 3. PLATFORM DEVELOPMENT 39

Fig. 3.24 illustrates the ground station software ow chart. Fig. 3.25 shows a screen
shot of the control page of the Borland C++ program that interfaces a user with
the platform.

Start

Initialise ground
station

Convert A/D
No Telemetry data Yes
values to SI
received? (50Hz)
units

Calibrate data

Filter and Yes Gyro offsets No Calculate gyro


differentiate ψ initialised? offsets (4sec)

Average data at
25Hz

Calculate ω in
gimbal axes

Calculate and Gyro drift


Yes Control flag No Yes Zero gyro
transmit control compensate flag
active? offsets
torques set?

No

Save telemetry
data to file at
50Hz

Update GUI at
1Hz

Figure 3.24: Ground station software ow chart

The main controller was developed and implemented on the ground station for
testing purposes. The controller can be implemented on the same on-board computer
(OBC) as the airship's AHRS in the nal integration. Communications between the
OBC and ground station are then performed via an RF link. The OBC and RF link
are discussed in [12].
CHAPTER 3. PLATFORM DEVELOPMENT 40

Figure 3.25: Ground station

3.6 Summary
This chapter described the physical implementation of the stabilised platform. An
overview of the development of a gimballed structure, along with actuators and
sensors necessary to control the platform, were presented.
The structure, along with the payload, weighs approximately 2.7 kg. The total
development cost were approximately ZAR 6440 for the electronics, sensors and
actuators and ZAR 17 800 for the 3-DOF gyroscope.
Chapter 4
Model Verication and Open Loop
Simulations

In this chapter, the open loop behaviour of the model is simulated and compared with
measurements of the actual plant. This comparison serves as a basis for determining
the model parameters. The eect of the airship's rotations on the platform are also
investigated by means of simulations.

4.1 Plant Response to Step Torque Commands


The accuracy of the mathematical model and the model parameters must be eval-
uated before the design of controllers for the platform can be investigated. The
model, derived in Chapter 2, is restated here for convenience.

I11 ω̇1 = Nm1 + Nw1 − ω2 h0 cosφG − ω3 h0 sinφG cosθG (4.1)


I22 ω̇2 = Nm2 + Nw2 + ω1 h0 cosφG − ω3 h0 cosφG sinθG (4.2)
I33 ω̇3 = Nm3 + Nw3 + ω1 ho sinφG cosθG + ω2 h0 cosφG sinθG , (4.3)

with

I11 = 6.441 × 10−3 kg.m2


I22 = 7.475 × 10−3 kg.m2

41
CHAPTER 4. MODEL VERIFICATION AND SIMULATIONS 42

I33 = 1.39691 × 10−2 kg·m2


h0 = −0.1313N.m.s

The Simulink model block diagram used to simulate Eqs. (4.1), (4.2) and (4.3) is
shown in Fig. 4.1.

f(u)
Ho
Fcn
-K- 1/s 1
xos sin
1/I11 W1
PhiG Sin PH

1 3 cos
Coulomb &
Nw PhiG initial
Viscous Friction1
Gimbal 1 condition Cos PH

f(u) 4 sin
ThetaG initial
Fcn1 condition Sin TH

-K- 1/s 1
xo s cos
1/I22 W2
ThetaG Cos TH

1
Coulomb &
Gimbal
Gimbal 2 Viscous Friction2
Rates
-K- 2
f(u) Gimbal
R2D
Angles
Fcn2
2 -K- 1/s 1
Nm xo s
1/I33 W3
PsiG

Coulomb & 5

Gimbal 3 Viscous Friction PsiG initial


condition

Figure 4.1: Simulation diagram of gyroscope dynamic model

4.1.1 Simulated Response without Friction


Firstly, the open loop behaviour of the platform is investigated with the assumption
that the gimbals are free to rotate with respect to each other without any friction
acting on the rotational elements. The simulated movement of the platform, for a
step of 10 mN·m in Nm1 and Nm2 , is shown in Fig. 4.2 and Fig. 4.3 respectively. The
initial conditions are φG (0) = θG (0) = ψG (0) = 0. For a step on the inner gimbal,
the initial rotation is only in θG (middle gimbal), and as θG increases the outer (ψG )
and inner (φG ) gimbals start to rotate. For a step on the middle gimbal, initially
only the inner gimbal rotates and as φG increases the outer and middle gimbals start
to rotate. Periodic oscillations (the nutational modes of a gyroscope) are also visible
CHAPTER 4. MODEL VERIFICATION AND SIMULATIONS 43

on the output of the system. The simulation results correspond to the movement of
the gyroscope described in Section 1.3.
5

Angle [degrees]
0

−5

φ
−10
θ
ψ
−15
0 0.5 1 1.5 2 2.5 3 3.5 4
Time [s]

10
Angular rate [deg/s]

−5
ω
1
ω2
−10
ω
3
−15
0 0.5 1 1.5 2 2.5 3 3.5 4
Time [s]

Figure 4.2: Simulated step response for a torque step command to gimbal 1

15

10
Angle [degrees]

−5 φ
−10 θ
ψ
−15
0 0.5 1 1.5 2 2.5 3 3.5 4
Time [s]

10
Angular rate [deg/s]

−5
ω1
ω2
−10
ω3
−15
0 0.5 1 1.5 2 2.5 3 3.5 4
Time [s]

Figure 4.3: Simulated step response for a torque step command to gimbal 2
CHAPTER 4. MODEL VERIFICATION AND SIMULATIONS 44

4.1.2 Measured Response


We now investigate the measured open loop behaviour of the plant. The results
are compared with the simulation results from the previous section. The measured
responses to step commands are shown in Fig. 4.4 for a step in Nm1 of 10 mN·m and
in Fig. 4.5 for a step in Nm2 of 10 mN·m. It can be seen that for a step on gimbal
1, the mean of the angular velocity of the inner gimbal, ω̄1 , is not equal to zero as
expected. Similarly, for a step on gimbal 2 we nd that ω̄2 6= 0. Damping of the
angular rates can also be observed.

10

0
Angle [deg]

−10
φ
−20 θ
ψ
−30
1 2 3 4 5 6 7 8
Time [s]

5
Angular velocity [deg/s]

ω1
−5
ω
2
ω
3
−10
1 2 3 4 5 6 7 8
Time [s]

Figure 4.4: Measured step response for a torque step command to gimbal 1

The damping and osets are mainly due to viscous and coulomb friction in the
rotational elements of the gimbals. Comparing the simulated and measured step
response, it is clear that friction has a signicant eect on the response of the
system and cannot be ignored in the model. The main sources of friction are the
potentiometers, motors and wiring.
Another important observation from Fig. 4.4 is that ω3 is zero for all time.
From consecutive measurements were found that for torque values commanding
slow angular rates (i.e. ω < 0.03rad/s), gimbal 3 is decoupled from the movement of
gimbal 1 and 2 and vice versa. This is due to the large coecients of static friction
between gimbal 3 and the base to which it is attached and between the contact
points of gimbal 1 and gimbal 2. The eect of static friction can be used as an
advantage in the design of steering controllers for the platform, since gimbal 3 can
CHAPTER 4. MODEL VERIFICATION AND SIMULATIONS 45

30
φ
20 θ

Angle [deg]
ψ
10

−10
1 2 3 4 5 6 7
Time [s]

10
Angular velocity [deg/s]

ω1
5 ω
2
ω3
0

−5

−10
1 2 3 4 5 6 7
Time [s]

Figure 4.5: Measured step response for a torque step command to gimbal 2

be mathematically decoupled from gimbals 1 and 2 for small angular rates. This
will be discussed further in Chapter 5.

4.2 Parameter Estimation


The non-linear eects of the wires between the gimbals make measurements of gim-
bal moment of inertia and coecients of friction dicult and inaccurate. These
parameters can however be determined more precisely by a comparison of the sim-
ulated and measured system responses.
The moment of inertia of each gimbal can be determined by comparing the
frequency of oscillation of the simulated and measured step responses, as determined
by the relationship expressed in Eq. (1.3). The nal parameters, determined by a
process of iteration, are given in Table 4.1. The model for frictional torque used in

Table 4.1: Physical properties of gimbals

Gimbal Moment of Inertia kg·m2 Coecient of viscous friction N


   
m·s−1
Outer (3) 7.14 × 10−3 4.5 × 10−3
Middle (2) 5.263 × 10−3 4 × 10−3
Inner (1) 4.587 × 10−3 4 × 10−3
CHAPTER 4. MODEL VERIFICATION AND SIMULATIONS 46

the simulations, with ωB = 0, are

(4.4a)

Nw1 = − kw1 ω1 + 0.0015sgn(ω1 )
(4.4b)

Nw2 = − kw2 ω2 + 0.0015sgn(ω2 )
Nw3 = − kw3 ω3 + 0.002sgn(ω3 ) . (4.4c)


To ensure that the simulations represent a good approximation of the physi-


cal system, sensor noise is included at the angular rate outputs of the simulation
model. The sensor noise are modelled as band-limited white noise, with RMS values
calculated from actual sensor measurements at the control bandwidth of

σω1 = 0.003347rad/s (4.5a)


σω2 = 0.003277rad/s (4.5b)
σω3 = 0.003529rad/s. (4.5c)

The simulated and measured step responses are shown in Figs. 4.6, 4.7 and 4.8,
where the parameters of Table 4.1 and Eqs. (4.4) and (4.5) were used in the simula-
tions. It can be seen that some uncertainty in the model parameters still exists. This
is partially due to unmodelled dynamics (e.q. the eect of the wires) and assump-
tions made in the modelling process, e.g. assuming a spherical moment of inertia
tensor. More exact plant parameters can be obtained by applying a deterministic
estimation method like least squares estimation [2]. However, the above mentioned
parameters describe the plant to a close enough approximation to yield good control
results. The spring eects in the wires, visible in Fig. 4.8, remain unmodelled, but
will be taken into account in the controller design process. The eect of the wires
can be eliminated with the use of slip rings.

4.3 Eect of Airship Rotations on Platform


A model for the airship's rotations must be determined before the pointing stability
of the platform in the presence of disturbance torques can be evaluated in simulation.
Typical rotations of a small blimp are illustrated in Fig. 4.9 [12]. The maximum
amplitude of the roll, pitch and yaw angles were measured as φP ≈ 30◦ , θP ≈ 15◦
and ψP ≈ 100◦ . For simulation purposes, the rotations can be approximated by
sinusoidal waves having periods of 16 s for roll rotation, 6 s for pitch rotation and
CHAPTER 4. MODEL VERIFICATION AND SIMULATIONS 47

Gimbal 1 Gimbal 2
2 2
Measured response
Angle [degrees]

Angle [degrees]
1.5 Simulated response 0

1 −2

0.5 −4

0 −6 Measured response
Simulated response
−0.5 −8
1.5 2 2.5 3 3.5 4 1.5 2 2.5 3 3.5 4
Time [s] Time [s]

Measured response
Angular rate [deg/s]

Angular rate [deg/s]


4 Simulated response 0

2
−5
0
Measured response
−2 −10 Simulated response
1.5 2 2.5 3 3.5 4 1.5 2 2.5 3 3.5 4
Time [s] Time [s]

Figure 4.6: Measured and simulated step responses for a torque step command to gimbal 1
of Nw1 = 8.5mN·m

Gimbal 1 Gimbal 2
6 3
Measured response Measured response
Angle [degrees]

Angle [degrees]

Simulated response Simulated response


4 2

2 1

0 0

−2 −1
1.5 2 2.5 3 3.5 4 1.5 2 2.5 3 3.5 4
Time [s] Time [s]

6 3
Measured response Measured response
Angular rate [deg/s]

Angular rate [deg/s]

Simulated response Simulated response


4 2

2 1

0 0

−2 −1
1.5 2 2.5 3 3.5 4 1.5 2 2.5 3 3.5 4
Time [s] Time [s]

Figure 4.7:Measured and simulated step responses for a torque step command to gimbal 2
of Nw2 = 6mN·m
CHAPTER 4. MODEL VERIFICATION AND SIMULATIONS 48
60

Angle [deg]
40

20
Measured response
Simulated response
0
4 5 6 7 8 9 10

30
Angular rate [deg/s]
Measured response
20 Simulated response

10

−10
4 5 6 7 8 9 10
Time [s]

Figure 4.8: Measured and simulated step responses for a torque pulse command to
gimbal 3 of Nw3 = 8mN·m with a duration of 2 s (θ = φ = 0◦ )
0
Roll angle [deg]

−5

−10

−15
330 340 350 360 370 380 390

4
Pitch angle [deg]

−2
410 415 420 425 430 435

320
Yaw angle [deg]

300
280
260
240

320 330 340 350 360 370 380


Time [s]

Figure 4.9: Typical roll, pitch and yaw rotation angles of a small blimp [12]

20 s for yaw rotation. Hence,


π 
ωBX = 0.205sin t , (4.6)
8 

ωBY = 0.274sin t (4.7)
3

and
π 
ωBZ = 0.55sin t . (4.8)
10
CHAPTER 4. MODEL VERIFICATION AND SIMULATIONS 49

The eect of the airship's rotations on the platform can be investigated by simulating
Eqs. (4.1), (4.2) and (4.3) with Nw as in Eqs. (2.57), (2.58) and (2.59) and the
airship's angular rates ωB as given above.
The simulation results are shown in Fig. 4.10. The platform deviates from its
pointing reference with up to 6 ◦ in azimuth and 7 ◦ in elevation. The RMS errors
in the azimuth and elevation planes are 2.6151 ◦ and 2.0493 ◦ respectively. Gimbal 3
experience angular rates of up to 0.2 rad/s and gimbals 1 and 2 experience angular
rates of up to 0.093 rad/s due to torque disturbances. The controller should be
designed to compensate for these disturbances.
100
Angle [deg]

50

0
φG θG ψG
−50
0 50 100 150 200 250 300 350
Angular rate [deg/s]

20

10

−10
ω1 ω2 ω3
−20
0 50 100 150 200 250 300 350

100
Angle [deg]

50

0
Boresight azimuth
Boresight elevation
−50
0 50 100 150 200 250 300 350
Time [s]

Figure 4.10: Simulated eect of blimp movement on platform due to viscous friction
Chapter 5
Platform Controller Design

This chapter begins by stating the strategy on which the controller designs are
based. Thereafter, the theory and design of the controllers responsible for platform
steering and disturbance torque rejection, are presented. This include the derivation
of a linear platform model. Finally, the controllers are evaluated in simulation.

5.1 Control Strategy


As was seen in Chapter 4, the equations governing the motion of the platform can be
decoupled at slow angular rates, reducing the complexity of the controllers needed
to steer the platform. Two separate controllers will be designed, one to control
motion in the azimuth plane (SISO controller) and another to control motion in the
elevation plane (MIMO controller having two input and output variables). This is
a sound strategy even for disturbance torque rejection, since the dynamics of an
airship are very slow [12].
The main focus in the controller design process will be on the design of steering
controllers for the platform. The performance of the platform's pointing stability
in terms of disturbance torque rejection will only be evaluated in simulations, since
the platform cannot at present be physically tested in an environment where it is
subjected to actual airship rotation rates.
Measurements of the platform's angular rates, coordinated in the gimbal axis
system, will be used as feedback in the control loops. Reference angular rates can
then easily be commanded to steer the platform's pointing direction to a desired
angle in azimuth or elevation. Regulation of the angular rates at 0 rad/s will ensure
that the platform maintains a constant pointing direction. The errors in φG , θG and

50
CHAPTER 5. PLATFORM CONTROLLER DESIGN 51

ψG will be evaluated for each controller and will be used as a criterion to determine
the tracking performance, even though an angle is not physically commanded.

5.2 Elevation Controller


The elevation angle of the platform is determined by the orientation of the middle
and inner gimbals. The middle gimbal will be the primary steering device for eleva-
tion pointing, as it's rotation angle is much greater than that of the inner gimbal.
The inner gimbal will only be used to compensate for rotations of the airship.

5.2.1 Specications and Sample Rate Selection


As was seen in Section 4.3, the controller should be able to compensate for distur-
bance signals with frequency content up to π3 rad/s. To ensure that the controller
will be able to react to these disturbances, the closed loop system bandwidth is
selected as
wb = 1.6rad/s. (5.1)
Speed response specications are not critical for the functioning of the elevation
steering controller. However, a faster angular rate response will result in smaller
steady state angle tracking errors and faster disturbance rejection capabilities. Also,
a response that is too fast can stimulate unmodelled dynamics and exceed physical
limitations in the system which will lead to instability. With the above in consider-
ation, the following specications are set for the elevation controller:

ˆ Rise time of under 2 s


ˆ Overshoot of less than 10 % on the commanded output
ˆ Zero steady state error
ˆ Be able to track angular rates of 0.03 rad/s without eecting ψG
The selection of the sampling frequency of a discrete system, ωs , is mainly de-
termined by the closed loop bandwidth of the system in accordance to the relation
ωs
> 20. (5.2)
ωb
CHAPTER 5. PLATFORM CONTROLLER DESIGN 52

This will ensure a reasonably smooth control response (i.e., at least ten samples
per rise time) [2]. By substituting Eq. (5.1) into Eq. (5.2), a lower bound for the
sampling frequency is calculated as
ωs
fs = ≥ 5Hz. (5.3)

Another important constraint on the sampling time of the elevation controller


is the fact that the plant has lightly damped modes, evident from the open loop
measurements of Chapter 4. These resonant frequencies, illustrated in Fig. 5.1, will
be excited by disturbance torques and must be suciently damped by the controller
to ensure stability in the platform's pointing direction. For the controller to be able
to react to these resonances, the sampling frequency must be chosen greater than
twice the resonant frequency [2], that is

ωs > 2ωr (5.4)


⇒fs > 8.6Hz.

System: sysC
I/O: In(2) to Out(1)
From: u1 From: u2 Frequency (Hz): 4.25
Magnitude (dB): 41.8
50
1
To: x

0
Magnitude (dB) ; Phase (deg)

−50
90
To: x1

−90
System: sysC
I/O: In(1) to Out(2)
−180 Frequency (Hz): 4.29
60 Magnitude (dB): 40.9
40
2
To: x

20
0
−20
−40
180
2

90
To: x

−90
−3 −2 −1 0 1 2 −3 −2 −1 0 1 2
10 10 10 10 10 1010 10 10 10 10 10
Frequency (Hz)
Figure 5.1: Open loop bode diagram of the plant responsible for elevation pointing

From a practical perspective, it is desirable to choose the sample rate of the con-
CHAPTER 5. PLATFORM CONTROLLER DESIGN 53

troller as slow as possible. The signal to noise ratio of the sensor measurements will
increase as the sample rate decreases when oversampling and averaging is used [19],
as is implemented in this project. Less measurement noise will result in more robust
controllers and simpler post processing algorithms (e.g. obtaining the derivative of
a measurement).
With the above factors in consideration, a good choice for the sample frequency,
which satisfy Eqs. (5.3) and (5.4), is

fs = 25Hz. (5.5)

5.2.2 State Equations and Control Law


The plant for the elevation controller consists of the middle and inner gimbals of the
gyroscope. The system has two control inputs, Nm1 and Nm2 , and two outputs to
be controlled, ω1 and ω2 . To design a controller for the MIMO system, state space
techniques will be used. The system can be described by the state equations

ẋ = Fx + Gu (5.6)
y = Hx + Ju, (5.7)

where x is the state vector, F is the state matrix, u is the input vector, G is the
input matrix, H is the output matrix and J is the feedforward matrix.
The dynamic equations for the system of gimbal 1 and gimbal 2, decoupled from
the movement of gimbal 3, i.e. w3 = 0, are

I11 ω̇1 = N1 − ω2 h0 cosφG − kw1 ω1 (5.8)


I22 ω̇2 = N2 + ω1 h0 cosφG − kw2 ω2 . (5.9)

The state vector is chosen as  


ω1
 
 ω2 
φ  .
x= (5.10)

 G
θG
CHAPTER 5. PLATFORM CONTROLLER DESIGN 54

Dening the functions


N1 ω2 h0 cosφG kw1 ω1
f1 (φG , θG , ω1 , ω2 , N1 , N2 ) = ω̇1 = − − (5.11)
I11 I11 I11
N2 ω1 h0 cosφG kw2 ω2
f2 (φG , θG , ω1 , ω2 , N1 , N2 ) = ω̇2 = + − (5.12)
I22 I22 I22
f3 (φG , θG , ω1 , ω2 , N1 , N2 ) = φ̇G = ω1 (5.13)
f4 (φG , θG , ω1 , ω2 , N1 , N2 ) = θ̇G = ω2 , (5.14)

the system can be linearised for small perturbations in x about the point
(ω10 , ω20 , φG0 , θG0 ). The linearized state matrix is calculated as
 
∂f1 ∂f1 ∂f1 ∂f1
 ∂ω1 ∂ω2 ∂φG ∂θG 
 
 ∂f2 ∂f2 ∂f2 ∂f2 
 
 
 ∂ω1 ∂ω2 ∂φG ∂θG 
F =
 
∂f
 3 ∂f 3 ∂f 3 ∂f 
3
 ∂ω1 ∂ω2 ∂φG ∂θG 
 
 
 ∂f4 ∂f4 ∂f4 ∂f4 
∂ω1 ∂ω2 ∂φG ∂θG
kw1 h0 cosφG0 h0 sinφG0
 
− − ω20 0
 I11
 h cosφ I11 I11 
 0 G0 kw2 h0 sinφG0 
= − −ω10 ,
0 (5.15)
 I22 I22 I22 
1 0 0 0
 

0 1 0 0

where the partial derivatives are evaluated at (ω10 , ω20 , φG0 , θG0 ). Since ω1 and
ω2 will be nominally zero during stabilization and small (ω < 0.03rad/s) during
platform steering and because φG will in general be small, the state matrix can be
simplied as
kw1 h0 cosφG0
 
− − 0 0
 I11
 h cosφ I11 
 0 G0 kw2 
F = − .
0 0 (5.16)
 I22 I22 
1 0 0 0
 

0 1 0 0
Eq. (5.16) shows that the angular rate states, x1 and x2 , are independent of the angle
states x3 and x4 and can therefore be decoupled. To steer the platform, the gimbal
CHAPTER 5. PLATFORM CONTROLLER DESIGN 55

angular rates ω1 and ω2 will be controlled and the angle states can be omitted from
the state vector to yield the simplied state equations as
kw1 h0 cosφG0 1
   
− − 0
I11 I11  I11
(5.17)
   
ẋ =  x+ u
 h cosφ
0 G0 kw2   1 
− 0
I22 I22 I22
" # " #
1 0 0 0
y= x+ u, (5.18)
0 1 0 0

with
" #
ω1
x= (5.19)
ω2

and
" #
Nm1
u= . (5.20)
Nm2

The system of Eqs. (5.17) to (5.20) can be discretized by

Φ = eF Ts (5.21)

and
Z Ts
Γ= eF η dη G, (5.22)
0

to yield the discrete state space representation

x(k + 1) = Φx(k) + Γu(k) (5.23)


y(k) = Hx(k) + Ju(k). (5.24)

The state equations do not account for static or coulomb friction and therefore
integral control will be added to the system to ensure zero steady state errors. The
state-space model, augmented with an integral state for each output and including
CHAPTER 5. PLATFORM CONTROLLER DESIGN 56

a reference input, is
" # " #" # " #
xI (k + 1) I H xI (k) 0
= + u(k) − Γr r(k) (5.25)
x(k + 1) 0 Φ x(k) Γ
" #
h i x (k)
y(k) = 0 H I
. (5.26)
x(k)

ω1
where r(k) = [ ω2ref ] are the reference inputs and Γr = 0I is the reference input ma-
ref
 

trix. The augmented state matrix, input matrix and output matrix will be denoted
ΦI , ΓI and HI respectively. The control law to be used is

u(k) = −Kx(k), (5.27)

which for a full state feedback controller with integral control and a reference input
becomes
" #
h i x (k)
u(k) = − KI K I
+ KNx r(k), (5.28)
x(k)

where Nx is the state command matrix, which for this system is Nx = 10 01 due to
 

the particular selection of the state matrices. The closed loop system, illustrated in
Fig. 5.2, in state space form is
" # " #! " #
xI (k + 1) KI xI (k)
= ΦI − ΓI + Γr r (5.29)
x(k + 1) K x(k)
" #
xI (k)
y(k) = HI . (5.30)
x(k)

− 1 w
z − 1
+ + x y
r − Σ e KI + Σ u+ Σ Φ, Γ
+
− 1
z − 1 K

Nx + Σ−

Figure 5.2: Block diagram of full-state feedback controller with integral control and
reference and disturbance inputs r and w
CHAPTER 5. PLATFORM CONTROLLER DESIGN 57

5.2.3 Controllability
From the open loop measurements in Chapter 4, it is clear that all the states can
be controlled by the two available inputs, and intuitively the system is controllable.
This can be veried mathematically by testing that the controllability matrix, de-
ned as h i
C = Γ ΦΓ · · · Φn−1 Γ (5.31)
is non-singular. The rank of C must be n for the matrix to be non-singular, where
n is the size of Φ and thus the number of poles that has to be placed. Substituting
the state equations at φG = 0rad into Eq. (5.31) yields
" #
2180 0 −1900.96 5438.446
C= (5.32)
0 1900 −5438.446 −1444

which has a rank of 2. The system was found to be controllable for the region of
interest −25◦ < φG < 25◦ .

5.2.4 Controller Design Methods


The performance of two methods to determine the gain matrix [ KI K ] in the full
state feedback controller for the platform were investigated, namely pole placement
and LQR optimal control [2]. These methods are discussed in the following sections.

Pole Placement
With the control law as in Eq. (5.27), the closed loop poles of the system [Φ − ΓK]
are given by the roots of the characteristic equation

|zI − Φ + ΓK| = 0. (5.33)

By selecting a set of closed loop poles (p1 , p2 , . . . , pn ) which will yield a desired system
response, the feedback gain matrix K that realize these poles can be calculated by
solving for K in the equation

|zI − Φ + ΓK| = (z − p1 )(z − p2 ) . . . (z − pn ). (5.34)

For a MIMO system, the resulting gain matrix is not unique. The MATLAB
function place.m handles the extra degrees of freedom and calculates a feedback
CHAPTER 5. PLATFORM CONTROLLER DESIGN 58

gain that minimizes the sensitivity of the closed-loop poles to perturbations in Φ or


Γ1 .

Steady State Optimal Control


The optimal linear quadratic regaluator (LQR) control method calculates the values
of K in the control law of Eq. (5.27) in such a manner as to minimise the cost function
n
1
x (k)Q1 x(k) + uT (k)Q2 u(k) . (5.35)
X  T 
J = lim
2 n→∞ k=0

The focus of the design is shifted from iterating on closed loop pole positions
to assigning weights in a cost function to produce the desired closed loop response.
The selection of the weighting matrices Q1 and Q2 is only weakly connected to the
closed loop performance specications and therefore the elements of these matrices
are determined by an iterative process. However, a degree of control over the settling
time can be obtained through the Pincer Procedure [2] which introduces another
parameter, α, into the problem. With

z(k) = αk x(k) and v(k) = αk u(k), (5.36)

the modied performance criterion is


n
(5.37)
X  T
x (k)Q1 x(k) + uT (k)Q2 u(k) α2k

Jα = lim
n→∞
k=0
n
(5.38)
X  T
z Q1 z + vT Q2 v

= lim
n→∞
k=0

and the state equations become

z(k + 1) = αΦz(k) + αΓv(k). (5.39)

If α is selected as
α > 1001/k = 100Ts /ts , (5.40)
all states should settle to less than 1% within the specied settling time ts .
1 See Kautsky, J. and Nichols N.K., "Robust Pole Assignment in Linear State Feedback", Int.
J. Control, 41 (1985), pp. 1129-1155.
CHAPTER 5. PLATFORM CONTROLLER DESIGN 59

The MATLAB function dlqr.m was used to calculates the gain matrices K and
KI .

Gain Scheduling
It is clear from Eq. (5.16) that the model is dependent on the selection of the
operating point in φG0 . Both controllers will initially be designed and tested at
φG0 = 0◦ . The adaptive control method of gain scheduling will then be implemented
on the controller with the best results in order to enable the controller to track
reference inputs at all allowable values of φG . The control scheme is illustrated
in Fig. 5.3. The state matrix F will be calculated at predened values of φG and

− 1 w
z − 1
+ + x y
r − Σ e KI + Σ u+ Σ Φ, Γ
+
− 1
KI(φG) K K(φG) φG
φG z − 1

Nx + Σ−

Figure 5.3: Block diagram of the gain scheduling controller

discretized with the MATLAB function c2d.m. The resulting discrete state and
input matrices will be used in the calculation of [KI K] to generate an array of gain
matrices. The appropriate gains in [KI K] can then be selected as a function of φG
at each sample instance.
Gain scheduling will not introduce stability issues since the change in model and
feedback gains will be very small over one sample period, as will be seen in the
following sections.

5.2.5 Pole Placement Controller Design


To achieve good control eort (i.e. meet the design specications with as little control
as possible), the four poles of the system will be placed according to a fourth order
Butterworth lter distribution [13]. The closed-loop poles of the Butterworth lter
are equally spaced in the left hand side of the s-plane on a constant ωn radius and has
an eective damping factor of ζe = 0.707. The lter cut-o frequency is selected
as 0.63 Hz. This will ensure that the bandwidth and rise time specications of the
CHAPTER 5. PLATFORM CONTROLLER DESIGN 60

closed-loop system are met and that the system's resonance frequencies will not be
stimulated by the controller. The resulting poles in the z-plane for φG0 = 0◦ are

z1,2 = 0.9312 + 0.1372j


(5.41)
zI1,2 = 0.8760 + 0.0817j .

The gain matrices are calculated as


" #
h i 0.002725 −0.001186 −0.018498 0.089157
KI K = . (5.42)
0.001444 0.002646 −0.104939 0.032215

Fig. 5.4 shows the bode diagram of the closed loop system. A reference command
to ω1ref will pass through to output ω1 , while the magnitude of ω2 for the same
reference input will be damped at low frequencies. The same holds for input ω2ref
to outputs ω2 and ω1 , verifying that the general working of the controller is correct.
The −3 dB cut-o is at approximately 0.5 Hz and a roll-o of 40 dB/dec can be
observed for ω1ref to ω1 and ω2ref to ω2 .
From: r1 From: r2
0

−20 System: SYScl


I/O: In(1) to Out(1)
Frequency (Hz): 0.501
−40
Magnitude (dB): −2.99
1
To: x

−60

−80

−100

−120
90
Magnitude (dB) ; Phase (deg)

−90
1
To: x

−180

−270

−360

−450

−20
2
To: x

−40

−60

−80

−100
270
180
90
2
To: x

0
−90
−180
−270
−360
−2 −1 0 1 −2 −1 0 1
10 10 10 10 10 10 10 10
Frequency (Hz)

Figure 5.4: Closed loop bode diagram of input r to output y

The simulated response to a step command in ω2ref is shown in Fig. 5.5. The
settling time is less than 2 s with no overshoot in ω2 . A steady state error in φG
CHAPTER 5. PLATFORM CONTROLLER DESIGN 61

of 1.69 ◦ results due to unwanted excitation of ω1 in the transient phase. The RMS
tracking error in θG is 1.8947 ◦ .
20
φG
Angle [deg]

θG
10
θGref

−10
4 5 6 7 8 9 10 11 12 13 14 15

0.15
Angular rate [rad/s]

ω1
0.1 ω2
ω2ref
0.05

−0.05
4 5 6 7 8 9 10 11 12 13 14 15

0.01
Torque [Nm]

0.005

0
N
−0.005 m1
Nm2
−0.01
4 5 6 7 8 9 10 11 12 13 14 15
Time [s]

Figure 5.5: Simulated step response of controller designed by pole placement for a step
in ω2ref = 0.03rad/s

5.2.6 LQR Controller Design


To obtain the desired response and system bandwidth as discussed in Section 5.2.1,
the Pincer settling time is chosen as ts = 4s. The actual 2 s specication will be
enforced by the selection of Q1 in order to provide more exibility in the resulting
pole locations. From Eq. (5.40), α is calculated as

α = 1.04713. (5.43)
CHAPTER 5. PLATFORM CONTROLLER DESIGN 62

Q1 and Q2 are selected as


 
qi 0 0 0
 
 0 qi 0 0
Q1 = 
0 0
 (5.44)
 q 0
0 0 0 q
 1 
0
 2
Q2 =  u11 1 , (5.45)

0
u222

with u11 = u22 = 10mN m (the maximum actuator authority). qi and q are varied to
obtain the desired closed loop response. The same weight is assigned to the respec-
tive states, since there is no classication of importance between the two system
or integrator states. As a design tool, the root loci of the system and integrator
poles, with φG0 = 0◦ , are plotted as a function of the elements in Q1 , which are
illustrated in Fig. 5.6. For each separate locus, q is kept constant while the value of
qi is iterated from 10−5 to 105 . The loci are plotted in dierent colours for dierent
values of q . Table 5.1 contains the colour legend for the plot in Fig 5.6.
It can be seen that as q increases, the natural frequency and the damping factor
of x1 and x2 increases. The weighting elements are selected as q = 5 and qi = 10−5 .
The resulting closed loop poles in the z-plane for φG0 = 0◦ are

z1,2 = 0.4026 ± 0.7335i


(5.46)
zI1,2 = 0.9550 ± 4.813452 × 10−8 i.

The integrator poles dominate the closed loop response and ensure that the set-
tling time specication is met. Only a small amount of damping is added to the
system poles, as damping with regard to a non-inertial reference can lead to insta-
bility in the physical implementation. This also reduces the controller's sensitivity
to model parameter deviations.
It will be shown in Chapter 6 that the performance of the LQR controller exceeds
that of the controller designed by pole placement. Gain scheduling will thus be
implimented on the LQR controller. Fig. 5.7 illustrates the resulting gain elements
as a function of φG . The gain matrices are implemented by means of second order
CHAPTER 5. PLATFORM CONTROLLER DESIGN 63

1
0.5π/T
0.6π/T 0.4π/T
0.8 + Integrator poles 0.1
0.7π/T 0.3π/T
x System poles 0.2
0.6 0.3
0.8π/T 0.4 0.2π/T
0.5
0.4 0.6
0.7
0.9π/T 0.8 0.1π/T
0.2 0.9
Imag axis

π/T
0
π/T

−0.2
0.9π/T 0.1π/T
−0.4
0.8π/T 0.2π/T
−0.6

0.7π/T 0.3π/T
−0.8
0.6π/T 0.4π/T
0.5π/T
−1
−1 −0.5 0 0.5 1
Real axis

Figure 5.6: Root loci of elevation pointing system as a function of qi and q

Table 5.1: Colour legend for Fig. 5.6

Red Yellow Black Magenta Cyan Blue Green


q 0.001 1 10 50 100 200 500

polynomials, given by

KI11 = 0.000242466φ2G + 0.002005259


KI12 = 0.005214423φ2G − 0.010493582
KI21 = 0.003702174φ2G + 0.028078711
KI22 = −0.002678747φ2G + 0.006185185
K11 = −0.005281990φ2G + 0.010618685
K12 = 0.000241618φ2G + 0.002034274
K21 = 0.001910840φ2G − 0.004763405
K22 = 0.003832059φ2G + 0.029751148,

where φG is measured in radians.


CHAPTER 5. PLATFORM CONTROLLER DESIGN 64
−3 K K K −3 K
x 10 I11 I12 11 x 10 12
2.05 −0.0095 0.0288 6.3

2.045 0.0287
6.2
2.04
0.0286
2.035 6.1
0.0285
2.03
−0.01 0.0284 6
2.025
0.0283
2.02 5.9
0.0282
2.015
5.8
2.01 0.0281

2.005 −0.0105 0.028 5.7


−0.5 0 0.5 −0.5 0 0.5 −0.5 0 0.5 −0.5 0 0.5
Gain

KI21 −3 KI22 −3 K21 K22


x 10 x 10
0.0108 2.09 −4.35 0.0305

−4.4 0.0304
0.0106 2.08
−4.45
0.0303
0.0104 2.07 −4.5
0.0302
−4.55
0.0102 2.06 0.0301
−4.6
0.03
0.01 2.05 −4.65
0.0299
−4.7
0.0098 2.04
−4.75 0.0298

0.0096 2.03 −4.8 0.0297


−0.5 0 0.5 −0.5 0 0.5 −0.5 0 0.5 −0.5 0 0.5

Angle [rad/s]

Figure 5.7: Gain elements as a function of φG for the LQR controller with gain scheduling

The implementation of gain scheduling lead to deviations from the closed loop
poles of Eq. (5.46), since the weighting matrices remain constant when the gains
are calculated as a function of φG . The locus of implemented poles are illustrated
in Fig. 5.8. The change in system poles due to gain scheduling will not have a
signicant eect on the response of the system, since the integrator poles dominate
the closed loop response. The integrator poles remain essentially the same as the
gains change as a function of φG .
The simulated step responses for a reference step in ω1 and ω2 of 0.03 rad/s are
shown in Figs. 5.9 and 5.10 respectively. The settling times are well within the
specied limit of less than 2 s for steps in both ω1ref and ω2ref . The RMS error in
φG is calculated as 0.9923 ◦ and in θG as 0.9624 ◦ . This is a reduction in tracking
errors of 50 % over the controller designed using pole placement.

5.3 Azimuth Controller


The specications set for the elevation controller also apply to the azimuth controller.
The speciations are:
ˆ Rise time of under 2 s
CHAPTER 5. PLATFORM CONTROLLER DESIGN 65

1 0.5π/T
0.6π/T 0.4π/T
0.8 0.7π/T 0.1
0.3π/T
0.2
0.6 0.3
0.8π/T 0.4 0.2π/T
0.5
0.4 0.6
0.7
0.9π/T 0.8 0.1π/T
Imag axis
0.2 0.9
π/T
0 π/T

−0.2
0.9π/T 0.1π/T
−0.4
0.8π/T 0.2π/T
−0.6
0.7π/T 0.3π/T
−0.8
0.6π/T 0.4π/T
0.5π/T
−1
−1 −0.5 0 0.5 1
Real axis

Figure 5.8: Closed loop pole perturbations for LQR controller with gain scheduling
20
φG
15
Angle [deg]

θG
10 φGref
5

−5
4 5 6 7 8 9 10 11 12 13 14 15
Angular rate [rad/s]

0.04 ω1
ω2
0.02 ω1ref

−0.02
4 5 6 7 8 9 10 11 12 13 14 15

−3
x 10
6
Nm1
Torque [Nm]

4 Nm2

0
4 5 6 7 8 9 10 11 12 13 14 15
Time [s]

Figure 5.9: Simulated step response of LQR controller for a step in ω1ref = 0.03rad/s

ˆ Overshoot of less than 10 %


ˆ Zero steady state error
ˆ Be able to track angular rates of 0.025 rad/s without aecting φG or θG
CHAPTER 5. PLATFORM CONTROLLER DESIGN 66
20
φG
15

Angle [deg]
θG
10 θGref
5

−5
4 5 6 7 8 9 10 11 12 13 14 15
Angular rate [rad/s]

0.04 ω1
ω2
0.02 ω2ref

−0.02
4 5 6 7 8 9 10 11 12 13 14 15

−3
x 10
2
Torque [Nm]

−2
Nm1
−4 Nm2

4 5 6 7 8 9 10 11 12 13 14 15
Time [s]

Figure 5.10: Simulated step response of LQR controller for a step in ω2ref = 0.03rad/s

A sampling time of 0.04 s, as was determined t for the elevation controller, will
also be used for the azimuth controller. A simple rst order PI controller will be
implimented on the outer gimbal to control platform motion in the azimuth plane.
This will ensure zero steady state error in the presence of unmodelled non-linear
dynamics, e.g. static and coulomb friction.
The motion of the third gimbal, decoupled gyroscopically from gimbals 1 and 2,
is described by Eq. (4.3) with ω1 = ω2 = 0rad/s. That is,

I33 ω̇3 = N3 + kw3 ω3 . (5.47)

Taking the Laplace transform of Eq. (5.47), yields the transfer function of the plant
as
Ω3 1
G3 (s) = = , (5.48)
N3 I33 s + kw3
with I33 = 7.14 × 10−3 kg·m2 and kw3 = 4.5 × 10−3 N/m·s−1 . Discretizing Eq. (5.48)
using the method of zero-order hold equivalents for a sampling period of Ts = 0.04s,
yield the discrete transfer function of the plant as
 
−1 G3 (s)
G3 (z) = (1 − z ) Z
s
5.53
= . (5.49)
z − 0.9751
CHAPTER 5. PLATFORM CONTROLLER DESIGN 67

Designing for a 1 % settling time of ts = 2s with optimal damping, i.e. ζ = 0.707,


the desired closed loop poles in the s-domain are

s1,2 = −2.3 ± 2.301j , (5.50)

which translates to the z-domain through z = esTs as

z1,2 = 0.9082 ± 0.0838j . (5.51)

These poles can be realized with a discrete PI controller, of which the transfer
function is given by
z−a
D(z) = KD . (5.52)
z−1
The control scheme is illustrated in Fig. 5.11. Using the method of discrete root

Z3ref  Nw3 Z3
6 D(z) G(z)


Figure 5.11: Block diagram of closed loop system for control in the azimuth plane

locus design [2], the values of KD and a that realize the poles given in Eq. (5.51)
were calculated as

KD = 0.0286

and

a = 0.9029.

The root locus of the system is illustrated in Fig. 5.12.


The simulated step response for a step in ω3 of 0.025 rad/s is illustrated in
Fig. 5.13. The system satises the settling time specication of ts = 2s, with no
visible overshoot. The RMS angle tracking error is calculated as 1.61 ◦ .
CHAPTER 5. PLATFORM CONTROLLER DESIGN 68

7.85
0.2

0.15 0.1
0.3 0.2
0.4
0.5
0.6
0.1 0.7
0.8
0.9
Imag Axis

0.05

−0.05

−0.1

−0.15

−0.2 7.85

0.7 0.75 0.8 0.85 0.9 0.95 1


Real Axis

Figure 5.12: Root locus of system responsible for azimuth pointing

15
Angle [deg]

10

5
ψG
0
ψGref
−5
0 1 2 3 4 5 6 7 8 9 10

0.04
Angular rate [rad/s]

0.02

0 ω3
ω3ref
−0.02
0 1 2 3 4 5 6 7 8 9 10

−3
x 10
3
Torque [Nm]

0
Nm3
−1
0 1 2 3 4 5 6 7 8 9 10
Time [s]

Figure 5.13: Simulated step response of PI controller for a step in ω3ref = 0.025rad/s
Chapter 6
Results

This chapter provides system output measurements of controller tests performed on


the ground. The controllers' steering performance is evaluated under base-stationary
conditions. Also presented are simulation results stating the performance of the
controllers when subjected to external disturbance torques. Finally, conclusions are
drawn from the results obtained.

6.1 Elevation Controller


6.1.1 Pole Placement Controller Results
Fig. 6.1 shows the response to a step command of 0.03 rad/s in ω2ref . The system
enters a stable limit cycle as a result of the step command due to the non-linearities
in the plant, which are mainly static and coulomb friction that is not accounted for
in the model. It was found that the oscillations can be eliminated by reducing the
feedback gains in K by a factor of 0.2 . As a result, less control eort is applied in
moving the system poles, causing the dynamics of the integrator poles to dominate
the response. The resulting pole locations are

z1,2 = 0.5479 ± 0.7105i


zI1,2 = 0.9860 ± 0.02319i.

Upon closer inspection, the frequency of the limit cycle was found to be approxi-
mately 0.67 Hz. This frequency is ltered by the modied closed loop system, evident
from the bode plot in Fig. 6.2, which also indicates that the modied system does

69
CHAPTER 6. RESULTS 70
15
φG

Angle [deg]
10 θG
θGref
5

−5
4 5 6 7 8 9 10 11 12 13 14 15

0.06
Angular rate [rad/s]

ω1
0.04 ω2

0.02 ω2ref

−0.02
4 5 6 7 8 9 10 11 12 13 14 15

−3
x 10
5
Torque [Nm]

−5 N
m1
N
m2
−10
4 5 6 7 8 9 10 11 12 13 14 15
Time [s]

Figure 6.1: Measured step response of elevation controller (pole placement) for a step in
ω2ref = 0.03rad/s

not meet the bandwidth specication of 1.6 rad/s.


Fig. 6.3 shows the modied system's response to a step command of 0.03 rad/s
in ω2ref . The limit cycle is eliminated but neither the settling time nor the overshoot
specications are met. This is a practical trade-o in the pole placement controller.
The RMS tracking error in θG , calculated for the rst 7 s after the step command was
issued, increased from 2.3811 ◦ to 3.0016 ◦ even though the steady state response has
improved. The larger RMS error is mainly due to the larger DC component in the
tracking error which is caused by the modied system's degraded transient response
to a step command.
Although controller tuning is often necessary in practical systems, it is dicult
to predict the resulting pole locations when feedback gains are arbitrarily modied.
Closed loop poles are not placed according to certain specications and the method
of pole placement loses its design power. For the problem at hand, factors in the
practical system prevented the eective implementation of a controller based on
pole placement. However, a better understanding of the system in terms of allowable
closed loop pole locations and order of feedback gains were obtained. This knowledge
proved very useful in nding a robust solution for the LQR controller.
CHAPTER 6. RESULTS 71

Bode Diagram

From: r1 From: r2
0

−20
To: x1

−40
System: SYSclmod
I/O: In(1) to Out(1)
−60 Frequency (Hz): 0.696
Magnitude (dB): −22.5
−80

−100
180
Magnitude (dB) ; Phase (deg)

0
To: x1

−180

−360

−540

−20
To: x2

System: SYSclmod
−40
I/O: In(2) to Out(2)
−60 Frequency (Hz): 0.637
Magnitude (dB): −20
−80

−100
360
Modified system
180
Original system
To: x2

−180

−360
−3 −2 −1 0 1 −3 −2 −1 0 1
10 10 10 10 10 10 10 10 10 10
Frequency (Hz)

Figure 6.2: Closed-loop bode diagram of input r to output y

30
φG
Angle [deg]

20 θG
θGref
10

−10
4 6 8 10 12 14 16 18 20 22 24

0.05 ω
1
Angular rate [rad/s]

ω
2
ω2ref
0

−0.05
4 6 8 10 12 14 16 18 20 22 24

−3
x 10
5
Torque [Nm]

−5 Nm1
Nm2
−10
4 6 8 10 12 14 16 18 20 22 24
Time [s]

Figure 6.3: Measured step response of modied elevation controller (pole placement) for
a step in ω2ref = 0.03rad/s
CHAPTER 6. RESULTS 72

6.1.2 LQR Controller Results


The measured step response for a reference step in ω1 and ω2 of 0.03 rad/s are shown
in Figs. 6.4 and 6.5 respectively. A 0.5 s delay in the response due to a step in ω1ref
and ω2ref can be observed. The delay is due to static and coulomb friction that
have to be overcome by the integral action of the controller. The settling times
are less than 2 s for a step in both ω1ref and ω2ref . The reference angular velocities
are tracked with zero steady state error. The measured RMS angle tracking errors
are 1.4292 ◦ in φG due to a step in ω1ref and 1.5092 ◦ in θG due to a step in ω2ref ,
measured over the rst 7 s after the step commands are given. This is more than
was observed in simulation and can be accounted for by the slightly slower transient
response caused by the delay of the physical system.
15
φ
G
Angle [deg]

10 θG

5 φGref

−5
4 5 6 7 8 9 10 11 12

0.06
Angular rate [rad/s]

ω
1
0.04 ω
2

0.02 ω1ref

−0.02
4 5 6 7 8 9 10 11 12

−3
x 10
6
Nm1
Torque [Nm]

4
N
m2
2

−2
4 5 6 7 8 9 10 11 12
Time [s]

Figure 6.4: Measured step response of LQR controller for a step in ω1ref = 0.03rad/s

Fig. 6.6 shows the response to a step command in ω2ref of 0.03 rad/s with φG
at an oset angle of −8 ◦ . The response satises the specications and illustrates
the working order of the gain scheduling component of the controller, along with
Fig. 6.4.
CHAPTER 6. RESULTS 73
15
φG

Angle [deg]
10 θG
θ
5 Gref

−5
4 5 6 7 8 9 10 11 12 13 14
Angular rate [rad/s]

0.04 ω1
ω2
0.02
ω2ref

−0.02
4 5 6 7 8 9 10 11 12 13 14

−3
x 10
5
Torque [Nm]

−5 Nm1
Nm2
−10
4 5 6 7 8 9 10 11 12 13 14
Time [s]

Figure 6.5: Measured step response of LQR controller for a step in ω2ref = 0.03rad/s
20
φG
Angle [deg]

θ
10 G
θGref

−10
4 5 6 7 8 9 10 11 12

0.06
Angular rate [rad/s]

ω
1
0.04 ω
2

0.02 ω2ref

−0.02
4 5 6 7 8 9 10 11 12

−3
x 10
5
Torque [Nm]

−5 Nm1
Nm2
−10
4 5 6 7 8 9 10 11 12
Time [s]

Figure 6.6: Measured step response of LQR controller for a step in ω2ref = 0.03rad/s
with φG = −8◦

6.2 Azimuth Controller


The measured step responses for a step command in ω3ref of 0.025 rad/s are shown
in Fig. 6.7 for θG ≈ 0◦ and in Fig. 6.8 for θG ≈ 35◦ . All the specications are
CHAPTER 6. RESULTS 74
30
φG

Angle [deg]
20 θG
ψG
10
ψGref
0

−10
5 10 15 20 25 30

0.04
Angular rate [rad/s]

ω3
ω3ref
0.02

−0.02
5 10 15 20 25 30

−3
x 10
6
Torque [Nm]

2
Nm3
0
5 10 15 20 25 30
Time [s]

Figure 6.7: Measured step response of azimuth controller for a step in ω3ref = 0.025rad/s
with φG = θG = 0◦
40
φG
Angle [deg]

θG
20
ψG
ψGref
0

−20
5 10 15 20 25 30

0.04
Angular rate [rad/s]

ω3
ω3ref
0.02

−0.02
5 10 15 20 25 30

−3
x 10
6
Torque [Nm]

2
Nm3
0
5 10 15 20 25 30
Time [s]

Figure 6.8: Measured step response of azimuth controller for a step in ω3ref = 0.025rad/s
with φG = −4◦ and θG = 33.6◦

met for the case φG = θG = 0◦ . A settling time of less than 2 s and negligible
overshoot can be observed. Fig. 6.8 indicates that the transient response degrades
slightly as the elevation angle decreases. This is mainly due the assumption that the
moment of inertia of each gimbal is spherical, which is not the case in the practical
CHAPTER 6. RESULTS 75

implementation. The worst case settling time was measured as approximately 2.1s,
which is still acceptable, since the steering performance in the steady state will not
be inuenced by the slightly slower settling time. φG and θG are not inuenced when
the platform is steered in the azimuth plane.

6.3 Disturbance Rejection


Fig. 6.9 shows the simulated stabilising performance of the combined azimuth and
elevation controllers in the presence of disturbance torques due to airship rotations.
The RMS errors in azimuth and elevation pointing has decreased to 0.2703 ◦ and
0.4248 ◦ respectively. The boresight drift that was observed in simulations of the
open loop system over a period of 360 s, has been eliminated with the controllers
active.
40
Angle [deg]

20

0
φ θ ψ
G G G
−20
0 50 100 150 200 250 300 350
Angular rate [deg/s]

−1
ω1 ω2 ω3
−2
0 50 100 150 200 250 300 350

100
Angle [deg]

50

0
Boresight azimuth
Boresight elevation
−50
0 50 100 150 200 250 300 350
Time [s]

Figure 6.9: Simulated eect of airship movement on platform due to viscous friction with
azimuth and elevation stabilising controllers

6.4 Conclusions
To further improve the pointing resolution of the platform in the presence of distur-
bance torques, the settling time specication of 2 s can be decreased. However, it
is dicult to nd a robust practical solution with faster response times. A MIMO
controller implementing the full set of dierential equations that describe the motion
CHAPTER 6. RESULTS 76

of the gyroscope should also increase the performance of platform in the presence of
disturbance torques.

6.4.1 Elevation controller


The closed loop system designed by the method of pole placement was found to be
very sensitive to the amount of control applied to the system poles. A number of
dierent pole locations that satisfy the specications were tested, of which the best
solution was presented here. Other methods tried include radial projection, where
the system poles' damping factor is increased while the natural frequency is kept
constant, leaving the placement of the integrator poles to achieve the desired system
response. Butterworth congurations at several dierent frequencies with and with-
out modied damping ratios were also investigated, without obtaining better results.
This indicates that robust pole placement in MIMO higher order systems, with un-
certainties in the locally linearised model as well as unmodelled non-linearities, is not
an easy task. However, insight into the behaviour of the plant was obtained. When
the model uncertainties lie within known bounds, methods like pole colouring [10],
adapted and simplied for the discrete case in [11], can be used. These methods
provide a graphical aid in determining the closed-loop pole variations. The eect
of the non-linearities can be investigated by means of describing functions analysis
of the system [2]. We, however, reverted to the method of optimal LQR control to
nd a robust solution.
The method of LQR control provided a solution which demonstrated good regula-
tion in the presence of disturbance torques and low sensitivity to model uncertainties.
The LQR controller can be declared robust in the light of the results obtained from
measurements and simulations. The controller developed by LQR optimal control
was implemented on the ground station in Borland C++, discussed in Section 3.5.2,
as the elevation control part of the main controller.
In all cases where satisfactory control results were obtained for the elevation
pointing system, the integrator poles dominated the response and the system poles
were kept close to their original positions. Large deviations from these positions led
to instability in the physical system. In addition to the unmodelled non-linearities,
the instability is caused by the fact that damping of the nutational modes of the
gyroscope is attempted with regard to a non-inertial reference, i.e. the middle and
outer gimbals [8].
CHAPTER 6. RESULTS 77

6.4.2 Azimuth controller


Satisfactory results were obtained from the PI controller developed in Section 5.3
for azimuth control and regulation. The dierence equation resulting from Eq. 5.52
was implemented in the ground station as the azimuth control part of the main
controller.
Chapter 7
Recommendations and Conclusions

7.1 Recommendations for Future Work


Some work still needs to be done before the platform can be eectively deployed on
an airship.

ˆ The current electronics layout was designed to interface with a Cygnal de-
velopment board. The electronics layout can be redesigned to include the
microprocessor, servodrives and IMU in a more compact and lightweight con-
guration. It should be noted that the gyroscope needs to be rebalanced when
alterations are made to the platform payload. Slip rings should also be installed
between gimbal 2 and 3, since the wires degrade the practical performance of
the platform in the current system.

ˆ The controllers can be modied to include the AHRS measurements as feed-


back signals. This will allow absolute regulation of the boresight pointing
direction. Due to gyro drift, the current system relies on a human in the loop
to obtain long term pointing stability.

ˆ The Kalman lter developed in the AHRS project [12] can be augmented to
include gyro bias estimation for the rate gyros onboard the platform. The
angle measurements can be used as feedback for the estimation process. Gyro
drift is causing unintended actuation of the platform in the current system.

ˆ An LQG estimator can be implemented which estimates the states of the plat-
form, taking into account the stochastic nature of the sensor measurements [2].

78
CHAPTER 7. RECOMMENDATIONS AND CONCLUSIONS 79

Using the estimated states in the full-state feedback controller, instead of the
noisy measurements, will improve the performance of the controllers.

ˆ For the development of the controllers in this thesis, it was assumed that the
ywheel is already spinning at a constant predened speed. When the ywheel
is in spin-up (i.e. accelerating from 0 rpm to 3300 rpm), the change of angular
momentum causes the gimbals to rotate. These unwanted rotations can be
eliminated by implementing a spin-up controller on the outer gimbal which
counteracts the torque generated by the ywheel in spin-up. This will allow
for on demand activation and deactivation of the ywheel in mid ight. This
will also provide control over the peak power consumption of the ywheel
during spin-up.

7.2 Conclusions
By utilising the inherent inertial properties of a gyroscope, a 3-axis stabilised camera-
platform for use in earth observation was developed. A motorised 3-DOF gyroscope,
which serves as the stabilised platform maintaining a stable pointing reference in
inertial space, was designed and built by the CMS at the University of Stellenbosch.
The following tasks were successfully carried out in customising the gyroscope for
this purpose:

ˆ Servo drive electronics and control systems were developed to ensure correct
actuation of the platform. The actuator dynamics were decoupled from the
main control loop resulting in separate torque control systems for each gimbal
motor, which were implemented as analogue circuits. A speed controller was
designed and implemented to ensure that the ywheel maintains a constant
angular velocity, which is one of the criteria for the successful operation of a
gyroscope. An IMU and gimbal angle sensors were developed and implemented
to provide measurements of the platform states.

ˆ A mathematical model for the stabilised platform was developed from rst
principles. The model was veried and used to determine the behavior of
the platform in simulation. It was found that for the gyroscope built in this
project, the motion of the outer gimbal could be decoupled from the rest of
the system at slow angular rates. Therefore, the main controller could be
split into two parts, one controlling motion in the azimuth plane and another
CHAPTER 7. RECOMMENDATIONS AND CONCLUSIONS 80

controlling motion in the elevation plane. Some aspects of the physical system
remain unmodelled, but great care was taken in the implementation to limit
the sources of unmodelled dynamics.

ˆ Controllers for steering the platform were designed and implemented based
on a linearised mathematical model of the platform. Satisfactory results were
obtained from the full-state feedback controller designed by the method of
LQR optimal control for elevation pointing and from the PI controller designed
for azimuth pointing. All the controller design specications were met. It was
shown in simulation that the controllers also provided good disturbance torque
rejection.

ˆ The steering system was integrated in a Borland C++ GUI program that
communicates with the microcontroller onboard the platform. This allows a
user to easily steer the platform from a remote location.

Comparing the capabilities of the platform developed in this thesis with com-
mercially available platforms (refer to Tables 7.1 and 1.1), it can be concluded that
the specications of a stabilised platform for use on an airship, are less strict, which
lead to a much more cost eective system design.

Table 7.1: Capabilities of platform developed in this thesis


Maximum Active con- Gyroscopic stabili- Field of view
steering rate1 trol bandwidth sation bandwidth (Az/El)
1.7 ◦ /s 1 Hz 55 Hz ±165 ◦ /
±40 ◦ biased at 90 ◦
1
The maximum rotation rate will be higher, and can only be measured after
integration with the airship AHRS.
List of References

[1] Franklin, G., Powell, J. and Emami-Naeini, A.: Feedback Control of Dynamic
Systems. 4th edn. Prentice Hall, New Jersey, 2002.

[2] Franklin, G., Powell, J. and Workman, M.: Digital Control of Dynamic Systems.
3rd edn. Addison-Westley, California, 1998.

[3] Marion, J.B. and Thornton, S.T.: Classical Dynamics of Particles and Systems.
4th edn. Saunders College Publishing, Fort Worth, Philadelphia, 1995.

[4] Neamen, D.: Electronic Circuit Analysis and Design. 2nd edn. McGraw-Hill,
Boston, 2001.

[5] Nilsson, J.W. and Riedel, S.A.: Electric Circuits. 6th edn. Prentice Hall, New
Jersey, 1969.

[6] Scarborough, J.B.: The Gyroscope: Theory and Applications. Interscience Pub-
lishers, Inc., New York, 1958.

[7] Ed. by Wertz, J.R.: Spacecraft Attitude Determination and Control. Kluwer
Academic Publishers, Londen, 1978.

[8] Wrigley, W., Hollister, W.M. and Denhard, W.G.: Gyroscopic Theory, Design
and Instrumentation. The M.I.T. Press, Cambridge, Massachusetts, 1969.

[9] Chingcuanco, A.O.: Modelling and Control of a Balloon Borne Stabilized Plat-
form. Ph.D. thesis, University of California, Berkeley, 1989.

[10] Söylemez, M. and Munro, M.: Robust pole assignment in uncertain systems.
In: IEE Proceedings on Control Theory and Applications, vol. 144, no. 3. May
1997.

81
LIST OF REFERENCES 82

[11] Botto, M., Babu²ka, R. and da Costa, J.: Discrete-time robust pole-placement
design through global optimization. In Preprints 15th IFAC World Congress,
pages T-Tu-M21, paper no. 2083, July 2002.

[12] Bijker, J.: Development of an Attitude Heading Reference System for an Air
ship. Master's thesis, University of Stellenbosch, Stellenbosch, 2006.

[13] Steyn, W.H.: Advanced Digital Control Systems 813 class notes, 2005. Univer-
sity of Stellenbosch.

[14] Regan, T.: A DMOS 3A, 55V, H-Bridge: The LMD18200. Application Note
694, National Semiconductor, 1999.

[15] National Semiconductor: LMD18200 3A, 55V H-Bridge. Datasheet, 1998.

[16] Texas Instruments: Advanced Regulating Pulse Width Modulators. Datasheet,


1999.

[17] Analog Devices: ADXRS401. Datasheet Rev. 0, 2004.

[18] Analog Devices: ADXL103/ADXL203. Datasheet Rev. 0, 2004.

[19] Cygnal Integrated Products, Inc.: Improving ADC resolution by oversampling


and averaging. Application Note AN18, May 2001.

[20] Olsen, J.: Remote sensing from air and space, 2005.
Available at: http://www.physics.nps.navy.mil/00_Remote_Sensing_
from_Air_and_Space.pdf

[21] Canada Centre for Remote Sensing: Fundamentals of remote sensing, 2006.
Available at: http://ccrs.nrcan.gc.ca/resource/tutor/fundam/pdf/
fundamentals_e.pdf

[22] Stabilized electro-optical airborne instrumentation platform (SEAIP), technical


brief. Southern Research Institution, 2006.
Available at: https://www.sri.org/pdf/electro_optical.pdf

[23] iMAR web page: http://www.imar-navigation.de/englishside/imar.htm.


2005.

[24] Floatograph web page: http://www.floatograph.com. 2005.


LIST OF REFERENCES 83

[25] Paravion web page: http://www.paravion.com/products/ev-275-2/ev-275-2.htm.


2004.

[26] Educational control products web page: http://www.ecpsystems.com. 2005.


Appendix A
Gyroscope Design

The design drawings of the three-degree-of-freedom gyroscope is shown in gures A.1


(left view) and A.2 (front and top views). The structure consist of three gimbals,
with a ywheel mounted on the inner gimbal. The inner gimbal forms the platform to
be stabilised. Each gimbal adds a degree of rotational freedom to allow the platform
to manoeuvre in roll, pitch and yaw. Each gimbal is connected to the previous gimbal
through a DC motor, which supply the torques for platform steering. In addition,
a potentiometer is mounted to each gimbal to measure the gimbal angles. Without
electronics and wires, the outer gimbal can rotate through 360 ◦ continuously for
azimuth platform steering. The middle and inner gimbals can both rotate ±55 ◦ in
platform roll and pitch. With electronics and wiring, the outer gimbal is restricted
to ±165 ◦ of rotation and the inner gimbal to ±25 ◦ . The center of mass of each
gimbal coincide with the center of mass of the ywheel, to eliminate disturbance
torques due to gravity.

A.1 Gimbal Moment of Inertia Measurements


The moments of inertia for each gimbal was measured by applying a torque to the
gimbal and measuring the resulting angular displacement which, after dierentiating
twice, gives the angular acceleration. The inertia about the axis of rotation can then
be calculated by Newton's second law, N = Jn α, where N is the applied torque,
α is the angular acceleration of the gimbal and Jn is the moment of inertia. The
torque is calculated as
N = km I , (A.1)

84
APPENDIX A. GYROSCOPE DESIGN 85

where km is the current constant of the motor and I is the current through the
motor.
The measured moment of inertia of each gimbal about its axis of rotation is
given in Table A.1. The value given is taken as the average of three consecutive
measurements. It should be noted that the measurements were inuenced by the
wires between the gimbals and were only used as a starting point to determine the
parameters used in the model.

Table A.1: Physical properties of gimbals

Gimbal Moment of Inertia [ mkg2 ]


Outer (3) 1.39691 × 10−2
Middle (2) 7.475 × 10−3
Inner (1) 6.441 × 10−3

Figure A.1: Three-degree-of-freedom gyroscope design drawing, left view


APPENDIX A. GYROSCOPE DESIGN 86

Figure A.2: Three-degree-of-freedom gyroscope design drawing, front and top views
Appendix B
PI Controller Analogue
Implementation

Considering the control system of Fig. B.1, the summation block and controller with
transfer function K s + I 
H(s) = KP
KP
(B.1)
s
can be realised with the analogue circuit illustrated in Fig. B.2.

r + e u y
Σ Controller Plant
-

Figure B.1: A controller and plant feedback system

Combining R2 and C to form Z2 and realising that the resulting circuit resembles
a dierence amplier [4], the output voltage Vu can be written in terms of the
reference voltage Vr as  Z2  Z2 
Vu = 1 + Vr . (B.2)
R1 R 1 + Z2
Substituting Z2 with ( sC1 + R2 ) in Eq. (B.2), where 1
sC
is the Laplace transform of
the capacitor, and simplifying, gives
1 
R2 s + CR2

Vy
= . (B.3)
Vr R1 s

87
APPENDIX B. PI CONTROLLER ANALOGUE IMPLEMENTATION 88

Substituting
R2
KP = (B.4)
R1
and
KI 1
= (B.5)
KP CR2
in Eq. (B.3), yield Eq. (B.1), which is the transfer function of the PI controller.

C R2

R1
Vy
Vu
R1
Vr

R2

Figure B.2: Analogue implementation of PI controller


Appendix C
Hardware Detail

This chapter details the design of the electronic hardware developed for the stabilised
platform. A photo of the electronics stack is shown in Fig. C.1. The IMU, with its
signal conditioning electronics is situated on the top stack. The middle stack hosts
the servodrive electronics. The electronic layout was designed to t on the Cygnal
C8051F020 development board, situated at the bottom. The IMU and servodrive
electronics interface with the microcontroller through a 96-pin expansion connector.

Figure C.1: Electronics developed for the stabilised platform

89
APPENDIX C. HARDWARE DETAIL 90

C.1 Motor Drives


Fig. C.2 shows the circuit diagram of the servodrives and torque and speed control
systems. The servodrive components and analogue control systems are detailed in
the following sections.

C.1.1 LMD18200
The LMD18200 can be operated in one of two modes, Locked Anti-phase Con-
trol (amplitude and direction of motor current is encoded in the PWM signal) or
Sign/Magnitude Control (only amplitude of motor current is encoded in the PWM
signal). The latter is implimented because better resolution in the commanded out-
put torque can be obtained. The LMD18200 has three input pins, a brake pin, a
direction pin and a PWM input pin. The microcontroller provides the brake and
direction signals while the UC3524A chip provides the PWM signal.
The maximum voltage that can be commanded by the microcontroller is 3.3 V.
Designing for currents of up to 0.5 A for motors 1 and 2 and to 0.86 A for motor 3,
the current sense resistors are calculated using Eq. (3.1) with I = kNm , as

3
Rsense1 = Rsense2 = = 15.915kΩ
0.5 · 377 × 10−6
3
Rsense3 = = 9.253kΩ (C.1)
0.86 · 377 × 10−6

C.1.2 UC3524A
The UC3524A chip is used to generate the PWM signal. The PWM duty cycle
is proportional to the voltage applied to pin 9. The output is generated by two
transistors, each capable of deliviring half cycle duty cycles up to 50 %. The output
of each transistor are tied together to obtain a PWM signal with a duty cycle that
can vary from 0 % to 100 %. The PWM signal is inverted before used as an input
to the H-bridge.
The frequency of the PWM signal is determined by an external resistor and
capacitor to ground at pin 6 and pin 7 respectively. The frequency was chosen as
30 kHz. Using the design equation

1
fosc ≈ , (C.2)
RT CT
APPENDIX C. HARDWARE DETAIL 91

R9
Vs 1k
R6 C6 R10 Vs
8k2 100n 15k
R7 C41 C42
2M2 47uF 100n
R8 C9 C10
C4 20k 100uF 1u
Vs
Vd
100n
U3A Vs
M1+

4
OPA4350 U1 R11
M1+
6 15 27k Vs U2
VI+ C7
7 2 9 DIR1 3 8
R1 R2 IN+ COMPN DIR1 DIR I SENSE
Vref1 Vref1 5 1
IN- OSC/SYNC
3 BRAKE1 4 2 10n
5k6 8k2 10 12 R46 Q1 BRAKE1 5
BRAKE OUT1
1
C1 SD CA 2N3906 PWM BOOTSTRAP1
4 13 10K 11
100n SEN+ CB BOOTSTRAP2
5 11 10
SEN- EA OUT2
11
6 14 9 C8
RT EB THERMAL FLAG
R3 7
CT +5VREF
16 10n M1- M1-
2M2 C2 R47 LMD18200T(11)
100n SG3524P(16) 1K

R5
3900
C3
R4 10n
20k

R9
Vs 1k
R6 C6 R10 Vs
8k2 100n 15k
R7 C41 C42
2M2 47uF 100n
R8 C9 C10
C4 20k 100uF 1u
Vs
Vd
100n
U3B Vs
OPA4350 U4 R11 M2+
4

M2+
9 15 27k Vs U5
VI+ C7
8 2 9 DIR2 3 8
R1 R2 IN+ COMPN DIR2 DIR I SENSE
Vref2 Vref2 10 1
IN- OSC/SYNC
3
R46 BRAKE2
BRAKE2 4
BRAKE OUT1
2 10n
5k6 8k2 10 12 5 1
C1 SD CA PWM BOOTSTRAP1
4 13 10K Q1 11
100n SEN+ CB BOOTSTRAP2
5 11 2N3906 10
SEN- EA OUT2
11

6 14 9 C8
RT EB THERMAL FLAG
R3 7
CT +5VREF
16 10n M2- M2-
2M2 C2 R47 LMD18200T(11)
100n SG3524P(16) 1K

R5
3900
C3
R4 10n
20k

R9
Vs 1k

R6 C6 R10 Vs
8k2 100n 15k
R7 C41 C42
2M2 47uF 100n
R8 C9 C10
C4 15k 100uF 1u
Vs
Vd
100n
U3C Vs
OPA4350 U6 R11 M3+
4

M3+
13 15 27k Vs U7
VI+ C7
14 2 9 DIR3 3 8
R1 R2 IN+ COMPN DIR3 DIR I SENSE
Vref3 Vref3 12 1
IN- OSC/SYNC
3
R46 BRAKE3
BRAKE3 4
BRAKE OUT1
2 10n
5k6 8k2 10 12 5 1
C1 SD CA PWM BOOTSTRAP1
4 13 10K Q1 11
100n SEN+ CB BOOTSTRAP2
5 11 2N3906 10
SEN- EA OUT2
11

6 14 9 C8
RT EB THERMAL FLAG
R3 7
CT +5VREF
16 10n M3- M3-
2M2 C2 R47 LMD18200T(11)
100n SG3524P(16) 1K

R5
3900
C3
R4 10n
15k
Vs

C47 C48
47uF 100n

R36 Vs
R34 R35 2M2 R37
Vtacho Vtacho
1k8 3k3 C33 150k
C31 Vs C38 C39
1u 100u 1u
1u
VS
U8 R43
15
VI+
27k Vs M4+ M4+
Vref4 R38 R39 2 9 U9
Vref4 IN+ COMPN C36
5k6 3k3 1 3 3 8
C32 IN- OSC/SYNC R44 Q4 DIR I SENSE 10n
10 12 BRAKE4 4 2
100n SD CA 2N3906 BRAKE4 BRAKE OUT1
4 13 10k 5 1
SEN+ CB PWM BOOTSTRAP1
5 11 11
SEN- EA BOOTSTRAP2
R40 6 14 10
C34 RT EB OUT2 C37
2M2 7 16 9
1u CT +5VREF THERMAL FLAG 10n M4-
VCC
M4-
SG3524P(16) LMD18200T(11)
R45
1k
R42
R41 3900 C40
150k 10n

Figure C.2: Schematic diagram of servodrives.


APPENDIX C. HARDWARE DETAIL 92

the values of CT and RT were selected as

CT = 10nF
RT = 3300Ω.

The UC3524A has an onchip error amp, which was used as the op-amp for the
analogue PI controller in the speed control loop of the ywheel. The limited common
mode input voltage range of the error amp forced the use of external op-amps in the
implementation of the PI controllers for the torque control loops, where the error
amps were used as buers.

C.1.3 Analoque Controllers


Gimbal Motor 1 and 2
To impliment the transfer fuction of Eq. (3.9), the values of the resistors and capac-
itors of Eq. (B.3) were chosen as

R1 = 8200Ω
R2 = 20000Ω
C = 100nF.
(C.3)

Gimbal Motor 3
To impliment the transfer fuction of Eq. (3.10), the values of the resistors and
capacitors of Eq. (B.3) were chosen as

R1 = 8200Ω
R2 = 15000Ω
C = 100nF.
(C.4)
APPENDIX C. HARDWARE DETAIL 93

Flywheel
To implement the transfer fuction of Eq. (3.14), the values of the resistors and
capacitors of Eq. (B.3) were chosen as

R1 = 3300Ω
R2 = 150000Ω
C = 1uF.
(C.5)

C.2 Potentiometers
Fig. C.3 illustrates the circuit diagram of the potentiometer as an angle sensor. The
output voltage of each potensiometer, by voltage division, is
2.4 × R−
Vo =
R+ + R−
= 0.00024R− . (C.6)

The ouput is ltered by a second order Butterworth low-pass lter [5], illustrated in
Fig. C.4. The transfer function of the normalised lter is
Vo 1
HB = = √
Vi s2 + 2 + 1
1
= R 2 C1 C2
2 . (C.7)
s2 + RC1
s + R2 C11 C2

The cut-o frequency of 25 Hz is realised with the following component values:

C1 = 0.9 × 10−6
C2 = 0.45 × 10−6
R = 10000.

The implemented values are C1 = 1µF, C2 = 0.47µF and R = 10kΩ.


APPENDIX C. HARDWARE DETAIL 94
12V

R1
2K2
R2
10K
2.4V
Vo

Figure C.3: Schematic diagram of potensiometers

100n VCC

4
OPA4350
6
C1 7
R R Vout
5
Vin
11
C2

Figure C.4: Schematic diagram of second-order low-pass Butterworth lter circuit

C.3 Inertial Measurement Unit


The schematic diagram of the IMU is illustrated in Fig. C.5. Each IMU output
signal is buered before adjusted from a 2.5 V bias to a 1.2 V bias and low-pass
ltered (25 Hz cut-o) with similar Butterworth lters as in Fig. C.4.
APPENDIX C. HARDWARE DETAIL 95

filter
FILTER.SchDoc
INPUT1 AD_CH0
R1 R9 INPUT1 AD_CH0
INPUT1 INPUT2 AD_CH1
INPUT2 AD_CH1
18k 33k INPUT3 AD_CH2
INPUT3 AD_CH2
INPUT4 AD_CH3
INPUT4 AD_CH3
R17 INPUT5 AD_CH4
INPUT5 AD_CH4
47k INPUT6 AD_CH5
INPUT6 AD_CH5
INPUT7 AD_CH6
INPUT7 AD_CH6
IMU-A INPUT8 AD_CH7
INPUT8 AD_CH7
AVCC U2
1 2 1 14
Vcc Gyro Aout Dout R2 R10
4 2 13 INPUT4
Vref Ain- Din-
5 3 12 18k 33k
C1 Temp Ain+ Din+
6
100nF Selftest
4 11 R18
AVCC V+ V-
7 47k
AccX C24
3 8 5 10
Gnd AccY 100n Bin+ Cin+ R3 R11
6 9 INPUT3
Bin- Cin-
7 8 18k 33k
Bout Cout
IMU-A
C4 J3 OPA4350 R19
1u 1 R4 R12 INPUT2 47k
Vcc Vin
18k 33k
2
GND
AVCC R20
3 47k
Vout
C5
100u
IMU-B
AVCC J1
1 2 AD_CH2 AccY-
Vcc Gyro 1
4 AD_CH0 GyroX
Vref 2
5 AD_CH7 AccZ-
C2 6 Temp 3
AD_CH5 GyroY
100nF Selftest R5 R13 4
J2 INPUT5 AD_CH3 Temp_IMU_C
5
7 18k 33k AD_CH1 Temp_IMU_A
Gnd 3 AccX 6
3 8 AD_CH6 AccX+
Selftest 2 Gnd AccY 7
R21 AD_CH4 GyroZ
Vcc 1 Vcc 8
47k
CON3 IMU-B CON8

U3
1 14 R6 R14 INPUT8
Aout Dout
2 13 18k 33k
Ain- Din-
3 12
Ain+ Din+
R22
4 11 47k
AVCC V+ V-
C25 5 10
100n 6 Bin+ Cin+ R7 R15
9 INPUT7
Bin- Cin-
7 8 18k 33k
Bout Cout
IMU-C
AVCC OPA4350 R23
1 2 47k
Vcc Gyro
4
Vref R8 R16
5 INPUT6
C3 6 Temp
18k 33k
100nF Selftest
7 R24
AccX
3 8 47k
Gnd AccY

IMU-C

Figure C.5: Schematic diagram of IMU

You might also like