29 #ifndef DJI_FLIGHT_ACTIONS_MODULE_HPP 30 #define DJI_FLIGHT_ACTIONS_MODULE_HPP 40 FlightActions(Vehicle *vehicle);
46 enum FlightCommand : uint8_t {
53 CALIBRATE_COMPASS = 9,
57 EXIT_CALIBRATE_COMPASS = 21,
58 LANDING_GEAR_DOWN = 28,
60 FORCE_LANDING_AVOID_GROUND = 30,
69 typedef struct CommonAck {
73 typedef struct KillSwitchData
77 uint8_t debug_description[10];
90 static const int maxSize = 32;
95 static void commonAckDecoder(Vehicle *vehicle,
RecvContainer recvFrame,
100 void actionAsync(FlightCommand req,
101 void (*ackDecoderCB)(Vehicle *vehicle,
105 UserData userData,
int timeout = 2000,
int retryTime = 1);
111 FlightLink *flightLink;
117 #endif // DJI_FLIGHT_ACTIONS_MODULE_HPP void * UserData
This is used as the datatype for all data arguments in callbacks.
Definition: dji_type.hpp:75
int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
Type definition for new Vehicle-style callbacks.
Received info.
Definition: dji_vehicle_callback.hpp:59
type of callback only deal the retCode for user
Definition: dji_flight_actions_module.hpp:85
Definition: dji_ack.cpp:38