ESE350 project, Spring 2016, University of Pennsylvania

Dependencies:   Adafruit9-DOf Receiver mbed-rtos mbed

Committer:
ivo_david_michelle
Date:
Sat Apr 02 13:47:58 2016 +0000
Revision:
8:326e7009ce0c
Parent:
7:f3f94eadc5b5
Child:
9:f1bd96708a21
added publich members to quadcopter

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ivo_david_michelle 6:6f3ffd97d808 1 #include "quadcopter.h"
ivo_david_michelle 6:6f3ffd97d808 2
ivo_david_michelle 6:6f3ffd97d808 3 // Date constructor
ivo_david_michelle 6:6f3ffd97d808 4 Quadcopter::Quadcopter()
ivo_david_michelle 6:6f3ffd97d808 5 {
ivo_david_michelle 8:326e7009ce0c 6 setState(0.0,0.0,0.0);
ivo_david_michelle 7:f3f94eadc5b5 7
ivo_david_michelle 6:6f3ffd97d808 8 }
ivo_david_michelle 6:6f3ffd97d808 9
ivo_david_michelle 6:6f3ffd97d808 10 // Date member function
ivo_david_michelle 8:326e7009ce0c 11 void Quadcopter::setState(double phi, double theta, double psi)
ivo_david_michelle 6:6f3ffd97d808 12 {
ivo_david_michelle 8:326e7009ce0c 13 state_.phi = phi;
ivo_david_michelle 8:326e7009ce0c 14 state_.theta = theta;
ivo_david_michelle 8:326e7009ce0c 15 state_.psi = psi;
ivo_david_michelle 6:6f3ffd97d808 16 }