Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Adafruit9-DOf Receiver mbed-rtos mbed
quadcopter.cpp
- Committer:
- ivo_david_michelle
- Date:
- 2016-04-02
- Revision:
- 6:6f3ffd97d808
- Child:
- 7:f3f94eadc5b5
File content as of revision 6:6f3ffd97d808:
#include "quadcopter.h"
// Date constructor
Quadcopter::Quadcopter()
{
SetState(0.0,0.0,0.0);
}
// Date member function
void Quadcopter::SetState(double phi, double theta, double psi)
{
state.phi = phi;
state.theta = theta;
state.psi = psi;
}