ESE350 project, Spring 2016, University of Pennsylvania
Dependencies: Adafruit9-DOf Receiver mbed-rtos mbed
Diff: quadcopter.cpp
- Revision:
- 8:326e7009ce0c
- Parent:
- 7:f3f94eadc5b5
- Child:
- 9:f1bd96708a21
diff -r f3f94eadc5b5 -r 326e7009ce0c quadcopter.cpp --- a/quadcopter.cpp Sat Apr 02 13:34:57 2016 +0000 +++ b/quadcopter.cpp Sat Apr 02 13:47:58 2016 +0000 @@ -3,14 +3,14 @@ // Date constructor Quadcopter::Quadcopter() { - SetState(0.0,0.0,0.0); + setState(0.0,0.0,0.0); } // Date member function -void Quadcopter::SetState(double phi, double theta, double psi) +void Quadcopter::setState(double phi, double theta, double psi) { - _state._phi = phi; - _state._theta = theta; - _state._psi = psi; + state_.phi = phi; + state_.theta = theta; + state_.psi = psi; } \ No newline at end of file