Flight class encapsulates all flight control related functions provided by the DJI OnboardSDK. More...
#include <DJI_Flight.h>
Flight class encapsulates all flight control related functions provided by the DJI OnboardSDK.
Definition at line 34 of file DJI_Flight.h.
Definition at line 93 of file DJI_Flight.h.
Definition at line 64 of file DJI_Flight.h.
Definition at line 51 of file DJI_Flight.h.
Definition at line 101 of file DJI_Flight.h.
STATUS_GROUND_STANDBY | |
STATUS_TAKE_OFF | |
STATUS_SKY_STANDBY | |
STATUS_LANDING | |
STATUS_FINISHING_LANDING |
Definition at line 83 of file DJI_Flight.h.
Definition at line 37 of file DJI_Flight.h.
Definition at line 44 of file DJI_Flight.h.
Definition at line 58 of file DJI_Flight.h.
Flight::Flight | ( | CoreAPI * | ControlAPI = 0 | ) |
Position control is a open-looped control. That means it accept incremental data, not absolute position data.
Definition at line 20 of file DJI_Flight.cpp.
void Flight::armCallback | ( | CoreAPI * | api, |
Header * | protoclHeader, | ||
UserData userData | __UNUSED = 0 |
||
) | [static] |
Definition at line 186 of file DJI_Flight.cpp.
void Flight::control | ( | uint8_t | flag, |
float32_t | x, | ||
float32_t | y, | ||
float32_t | z, | ||
float32_t | yaw | ||
) |
Definition at line 81 of file DJI_Flight.cpp.
CommonData Flight::getAcceleration | ( | ) | const |
Definition at line 132 of file DJI_Flight.cpp.
CoreAPI * Flight::getApi | ( | ) | const |
Definition at line 28 of file DJI_Flight.cpp.
Flight::Device Flight::getControlDevice | ( | ) | const |
Definition at line 139 of file DJI_Flight.cpp.
Flight::Mode Flight::getControlMode | ( | ) | const |
Definition at line 149 of file DJI_Flight.cpp.
EulerAngle Flight::getEulerAngle | ( | ) | const |
Definition at line 125 of file DJI_Flight.cpp.
MagnetData Flight::getMagnet | ( | ) | const |
Definition at line 137 of file DJI_Flight.cpp.
Angle Flight::getPitch | ( | ) | const |
Definition at line 176 of file DJI_Flight.cpp.
PositionData Flight::getPosition | ( | ) | const |
Definition at line 127 of file DJI_Flight.cpp.
QuaternionData Flight::getQuaternion | ( | ) | const |
Definition at line 110 of file DJI_Flight.cpp.
Angle Flight::getRoll | ( | ) | const |
Definition at line 166 of file DJI_Flight.cpp.
Flight::Status Flight::getStatus | ( | ) | const |
Definition at line 144 of file DJI_Flight.cpp.
VelocityData Flight::getVelocity | ( | ) | const |
Definition at line 129 of file DJI_Flight.cpp.
Angle Flight::getYaw | ( | ) | const |
Definition at line 156 of file DJI_Flight.cpp.
CommonData Flight::getYawRate | ( | ) | const |
Definition at line 134 of file DJI_Flight.cpp.
void Flight::setApi | ( | CoreAPI * | value | ) |
Definition at line 30 of file DJI_Flight.cpp.
void Flight::setArm | ( | bool | enable, |
CallBack | ArmCallback = 0 , |
||
UserData | userData = 0 |
||
) |
Definition at line 61 of file DJI_Flight.cpp.
unsigned short Flight::setArm | ( | bool | enable, |
int | timer | ||
) |
Definition at line 68 of file DJI_Flight.cpp.
void Flight::setFlight | ( | FlightData * | data | ) |
Definition at line 105 of file DJI_Flight.cpp.
void Flight::setMovementControl | ( | uint8_t | flag, |
float32_t | x, | ||
float32_t | y, | ||
float32_t | z, | ||
float32_t | yaw | ||
) |
Definition at line 93 of file DJI_Flight.cpp.
void Flight::task | ( | TASK | taskname, |
CallBack | TaskCallback = 0 , |
||
UserData | userData = 0 |
||
) |
Definition at line 37 of file DJI_Flight.cpp.
unsigned short Flight::task | ( | TASK | taskname, |
int | timer | ||
) |
Definition at line 46 of file DJI_Flight.cpp.
void Flight::taskCallback | ( | CoreAPI * | api, |
Header * | protocolHeader, | ||
UserData userData | __UNUSED = 0 |
||
) | [static] |
Definition at line 216 of file DJI_Flight.cpp.
EulerAngle Flight::toEulerAngle | ( | QuaternionData | quaternionData | ) | [static] |
Definition at line 255 of file DJI_Flight.cpp.
EulerianAngle Flight::toEulerianAngle | ( | QuaternionData | data | ) | [static] |
@ deprecated Use toEulerAngle instead.
Definition at line 233 of file DJI_Flight.cpp.
QuaternionData Flight::toQuaternion | ( | EulerianAngle | eulerAngleData | ) | [static] |
Definition at line 276 of file DJI_Flight.cpp.
CoreAPI* DJI::onboardSDK::Flight::api [private] |
Definition at line 185 of file DJI_Flight.h.
TaskData DJI::onboardSDK::Flight::taskData [private] |
Definition at line 186 of file DJI_Flight.h.