dji_camera.hpp
Go to the documentation of this file.
1 
30 #ifndef DJI_CAMERA_H
31 #define DJI_CAMERA_H
32 
33 #include "dji_command.hpp"
34 #include "dji_type.hpp"
35 
36 namespace DJI
37 {
38 namespace OSDK
39 {
40 
41 // Forward Declaration
42 class Vehicle;
43 
49 class Camera
50 {
51 public:
52  Camera(Vehicle* vehicle);
53  ~Camera();
54 
55 public:
56  // Non-Blocking API
60  void shootPhoto();
64  void videoStart();
68  void videoStop();
69 
70 private:
81  void action(const uint8_t cmd[]);
82 
83 private:
84  Vehicle* vehicle;
85 }; // class camera
86 } // namespace OSDK
87 } // namespace DJI
88 
89 #endif // DJI_CAMERA_H
void videoStart()
start recording video, check DJI Go app or SD card for video
Definition: dji_camera.cpp:52
All DJI OSDK OpenProtocol Command IDs.
void shootPhoto()
take a photo, check DJI Go app or SD card for photo
Definition: dji_camera.cpp:46
void videoStop()
stop recording video, check DJI Go app or SD card for video
Definition: dji_camera.cpp:58
Data type and Data Structure definitions for use throughout DJI OSDK.
Definition: dji_ack.cpp:38
Camera class for controlling camera-related functions available through open protocol.
Definition: dji_camera.hpp:49