32 #ifndef DJIOSDK_FLIGHT_SAMPLE_HPP 33 #define DJIOSDK_FLIGHT_SAMPLE_HPP 35 #include <dji_linux_helpers.hpp> 40 FlightSample(Vehicle *vehicle);
54 bool setUpSubscription(
int pkgIndex,
int freq,
65 bool teardownSubscription(
const int pkgIndex,
76 bool getHomeLocation(Telemetry::HomeLocationSetStatus &homeLocationSetStatus,
77 Telemetry::HomeLocationData &homeLocationInfo,
86 bool checkActionStarted(uint8_t mode);
112 bool goHomeAndConfirmLanding(
int timeout = 1);
122 bool monitoredTakeoff(
int timeout = 1);
124 bool moveByPositionOffset(
const Vector3f &offsetDesired,
125 float yawDesiredInDeg,
126 float posThresholdInM = 0.5,
127 float yawThresholdInDeg = 1.0);
131 template <
typename Type>
132 static int signOfData(Type type);
133 static float32_t vectorNorm(
Vector3f v);
138 static void horizCommandLimit(
float speedFactor,
float& commandX,
float& commandY);
140 bool motorStartedCheck();
141 bool takeOffInAirCheck();
142 bool takeoffFinishedCheck();
144 #endif // DJIOSDK_FLIGHT_SAMPLE_HPP FlightAssistant::GoHomeAltitude GoHomeHeight
Definition: dji_flight_controller.hpp:53
struct for TOPIC_QUATERNION
Definition: dji_telemetry.hpp:188
int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
struct for TOPIC_GPS_FUSED
Definition: dji_telemetry.hpp:287
TopicName
enum TopicName is the interface for user to create packages and access data It is also used as index ...
Definition: dji_telemetry.hpp:59
struct for multiple Topics
Definition: dji_telemetry.hpp:199
struct DJI::OSDK::Telemetry::Vector3f Vector3f
struct for multiple Topics
Vehicle API for DJI onboardSDK library.