![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ESE350 project, Spring 2016, University of Pennsylvania
Dependencies: Adafruit9-DOf Receiver mbed-rtos mbed
quadcopter.cpp@7:f3f94eadc5b5, 2016-04-02 (annotated)
- Committer:
- ivo_david_michelle
- Date:
- Sat Apr 02 13:34:57 2016 +0000
- Revision:
- 7:f3f94eadc5b5
- Parent:
- 6:6f3ffd97d808
- Child:
- 8:326e7009ce0c
implemented private variables in quadcopter.h
Who changed what in which revision?
User | Revision | Line number | New 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 | 6:6f3ffd97d808 | 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 | 6:6f3ffd97d808 | 11 | void Quadcopter::SetState(double phi, double theta, double psi) |
ivo_david_michelle | 6:6f3ffd97d808 | 12 | { |
ivo_david_michelle | 7:f3f94eadc5b5 | 13 | _state._phi = phi; |
ivo_david_michelle | 7:f3f94eadc5b5 | 14 | _state._theta = theta; |
ivo_david_michelle | 7:f3f94eadc5b5 | 15 | _state._psi = psi; |
ivo_david_michelle | 6:6f3ffd97d808 | 16 | } |