29 #ifndef ONBOARDSDK_DJI_PAYLOAD_LINK_HPP 30 #define ONBOARDSDK_DJI_PAYLOAD_LINK_HPP 38 PayloadLink(Vehicle *vehicle);
54 void sendAsync(
const uint8_t cmd[],
void *pdata,
size_t len,
void *callBack,
55 UserData userData,
int timeout = 500,
int retry_time = 2);
57 ACK::ExtendedFunctionRsp *sendSync(
const uint8_t cmd[],
void *pdata,
58 size_t len,
int timeout);
60 void sendToPSDK(uint8_t *data, uint16_t len);
63 Vehicle *getVehicle()
const {
return vehicle;};
65 void setVehicle(Vehicle *value) {vehicle = value;};
74 #endif // ONBOARDSDK_DJI_PAYLOAD_LINK_HPP void * UserData
This is used as the datatype for all data arguments in callbacks.
Definition: dji_type.hpp:75
Type definition for new Vehicle-style callbacks.
Definition: dji_ack.cpp:38