dji_hardware_sync.hpp
Go to the documentation of this file.
void * UserData
This is used as the datatype for all data arguments in callbacks.
Definition: dji_type.hpp:75
void subscribeNMEAMsgs(VehicleCallBack cb, void *userData)
Subscribe to NMEA messages with a callback function.
Definition: dji_hardware_sync.cpp:66
bool getGNRMCMsg(NMEAData &nmea)
Poll NMEA messages.
Definition: dji_hardware_sync.cpp:291
void unsubscribeFCTimeInUTCRef()
Unsubscribe to FC Time in UTC referece.
Definition: dji_hardware_sync.cpp:153
Type definition for new Vehicle-style callbacks.
void(* VehicleCallBack)(Vehicle *vehicle, RecvContainer recvFrame, UserData userData)
Function prototype for all callback functions used in the OSDK.
Definition: dji_vehicle_callback.hpp:76
void unsubscribeUTCTime()
Unsubscribe to UTC time tag.
Definition: dji_hardware_sync.cpp:128
bool getPPSSource(PPSSource &source)
Poll PPS source info.
Definition: dji_hardware_sync.cpp:285
void subscribeUTCTime(VehicleCallBack cb, void *userData)
Subscribe to UTC Time tag with a callback function.
Definition: dji_hardware_sync.cpp:114
The CallBackHandler struct allows users to encapsulate callbacks and data in one struct.
Definition: dji_vehicle_callback.hpp:83
void setSyncFreq(uint32_t freqInHz, uint16_t tag=0)
Call this API to start sending a hardware pulse and set up a software packet to accompany it.
Definition: dji_hardware_sync.cpp:50
bool getFCTimeInUTCRef(DJI::OSDK::ACK::FCTimeInUTC &fcTimeInUTC)
Poll FC Time in UTC referece.
Definition: dji_hardware_sync.cpp:279
bool getGNGSAMsg(GNGSAPackage &GNGSA)
Poll NMEA messages.
Definition: dji_hardware_sync.cpp:297
void writeData(const uint8_t cmdID, const RecvContainer *recvContainer)
Write data when received from UART.
Definition: dji_hardware_sync.cpp:244
Data type and Data Structure definitions for use throughout DJI OSDK.
void subscribePPSSource(VehicleCallBack cb, void *userData)
Subscribe to PPS source info with a callback function.
Definition: dji_hardware_sync.cpp:164
void startSync(SyncSettings &data)
Internal setter function that is called by setSyncFreq function.
Definition: dji_hardware_sync.cpp:59
void unsubscribePPSSource()
Unsubscribe to PPS source info.
Definition: dji_hardware_sync.cpp:178
Definition: dji_ack.cpp:38
void unsubscribeNMEAMsgs()
Unsubscribe to NMEA messages.
Definition: dji_hardware_sync.cpp:91
void subscribeFCTimeInUTCRef(VehicleCallBack cb, void *userData)
Subscribe to FC Time in UTC referece with a callback function.
Definition: dji_hardware_sync.cpp:139
This struct captures PushData when subscribe to UTC & FC time in hardware sync.
Definition: dji_ack.hpp:330
bool getUTCTime(NMEAData &utc)
Poll UTC time tag.
Definition: dji_hardware_sync.cpp:273