PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control...

14
PX4 VTOL Vector Control of a Tail-sitter Roman Bapst Embedded Linux Conference, San Jose March 23th - 25th, 2015 PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 1 / 14

Transcript of PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control...

Page 1: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

PX4 VTOL Vector Control of a Tail-sitter

Roman Bapst

Embedded Linux Conference, San JoseMarch 23th− 25th, 2015

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 1 / 14

Page 2: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Content

1 Motivation2 Airframe3 Control4 Conclusion & Outlook

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 2 / 14

Page 3: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Content

1 Motivation2 Airframe3 Control4 Conclusion & Outlook

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 3 / 14

Page 4: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Motivation

Why is fixed wing VTOL interesting?

◮ take-off and land like a helicopter

◮ fly efficient like fixed wing plane

Requirements

◮ low mechanical complexity

◮ suitable for prototyping, testing (small scale, easy repairable)

◮ high efficiency

Examples

Transition Robotics’ Quadshot BirdsEyeView Aerobotics’ FireFly6 Canadair CL-84

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 4 / 14

Page 5: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Content

1 Motivation2 Airframe3 Control4 Conclusion & Outlook

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 5 / 14

Page 6: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Airframe

Our Solution: Caipirinha Tail-sitter

◮ use conventional wing and upgrade it toVTOL

◮ weight: 900 g, wingspan: 0.84m⇒ allows convenient, save testing

◮ low mechanical complexity (no rotation ofbody parts necessary)

◮ non-destructible EPP foam

◮ autopilot: Pixhawk with PX4 firmware

Challenges

◮ choice of engines and props is crucial:efficiency vs. airflow for control authority

◮ moment generation using flaps is highlyairspeed dependant

◮ large area for wind to attack during hover

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 6 / 14

Page 7: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Content

1 Motivation2 Airframe3 Control4 Conclusion & Outlook

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 7 / 14

Page 8: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Control

What are the main challenges?

◮ three flight phases: hover, transition, horizontal flight

◮ controller needs to work for all phases ⇒ very difficult

◮ flap actuation non-linear dependant on airspeed

◮ relevant airspeed is combination of vehicle airspeed & prop induced airspeed

◮ aerodynamic forces (lift drag) and moments have large impact on vehicle dynamics⇒ need good model for control

Possible solution: Controller switching

◮ run multicopter and fixed wing controller and do switching/blending

◮ gives good results but not elegant, brute force

⇒ want a single controller which can handle all phases

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 8 / 14

Page 9: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Control

Better solution: VTOL controller

◮ use cascaded control strategy (position → velocity →

acceleration)

◮ compute desired attitude and thrust from desiredacceleration

◮ compensate desired acceleration for aerodynamic forces

◮ use onboard sensores & aerodynamic data to model forces

◮ can use approximations e.g. lift cancels gravity in horizontalflight

_

+

AerodynamicForcesModel

OnboardSensors

VTOLController

Attitude &Body-RateController

state

Actuator Controls

aerodynamic forces

att & thrust

a_des.

Advantages

◮ no controller switching necessary, no phase distinction necessary

◮ can use most structure from multicopter position/attitude controller

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 9 / 14

Page 10: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Control

Modelling example: Estimation of total airspeed at flaps

◮ use simple model of airflow andcurrent measurements to estimatetotal air velocity behind propeller

◮ can use estimate to scale attitudecontroller gains

v0v1 = v2

A3

A0

p3

A1 = A2 = A

p1p2

p0

v3

time in [s]0 20 40 60 80 100 120 140 160 180

velo

city

in [m

/s]

6

8

10

12

14

16

18

20

measured airspeedestimated total airspeed

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 10 / 14

Page 11: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Control

Velocity tracking results in horizontal flight

time in [s]40 60 80 100 120 140 160 180

vx in

[m/s

]

-10

0

10

time in [s]40 60 80 100 120 140 160 180

vy in

[m/s

]

-10

0

10

time in [s]40 60 80 100 120 140 160 180

vz in

[m/s

]

-5

0

5

reference: red, actual: blue

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 11 / 14

Page 12: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Content

1 Motivation2 Airframe3 Control4 Conclusion & Outlook

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 12 / 14

Page 13: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Conclusion & Outlook

Conclusion

◮ VTOL controller allows elegant control throughout entire flight envelope

◮ no switching of controllers or flight mode distinction necessary

◮ but: need a good aerodynamic model ⇒ wind tunnel data?

◮ further testing and development required

Outlook

◮ fly transitions based on desired velocity trajectory

◮ find suitable aerodynamic model

◮ make controller robust to model uncertainties

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 13 / 14

Page 14: PX4 VTOL Vector Control of a Tail-sitter - Dronecode · 2015-04-19 · Motivation Airframe Control Conclusion & Out-lo Control Better solution: VTOL controller use cascaded control

Motivation

Airframe

Control

Conclusion&Out-lo

Thank you for your attention

PX4 VTOL Vector Control of a Tail-sitter : Roman Bapst 14 / 14