I-Seed drone's onboard service  0.0.9
Classes | Public Member Functions | List of all members
camera Class Reference

Wrapper for a camera management Payload SDK functions. More...

#include <camera.h>

Public Member Functions

 camera (const std::string &model_file, mission &)
 
 ~camera ()
 
void shoot_photo (const gps_coordinates &gps, const attitude &drone_attitude, const attitude &gimbal_attitude, std::size_t waypoint_index)
 Start shooting a photo. More...
 
bool check_sdcard (bool debug_launch)
 Check SDCard for new shot photos. More...
 
bool queue_is_empty () const
 Check if processing queue is empty. More...
 

Detailed Description

Wrapper for a camera management Payload SDK functions.

Constructor & Destructor Documentation

◆ camera()

camera::camera ( const std::string &  model_file,
mission m 
)

◆ ~camera()

camera::~camera ( )

Member Function Documentation

◆ shoot_photo()

void camera::shoot_photo ( const gps_coordinates gps,
const attitude drone_attitude,
const attitude gimbal_attitude,
std::size_t  waypoint_index 
)

Start shooting a photo.

Parameters
[in]gpsDrone's GPS coordinates
[in]drone_attitudeDrone's yaw/roll/pitch
[in]gimbal_attitudeCamera gimbal's yaw/roll/pitch
[in]waypoint_indexWaypoint index where result should be saved
Note
Thread: action
Here is the call graph for this function:

◆ check_sdcard()

auto camera::check_sdcard ( bool  debug_launch)

Check SDCard for new shot photos.

Returns
true New photos were found, and the inference was run
false No new files found yet
Note
Thread: inference

◆ queue_is_empty()

auto camera::queue_is_empty ( ) const

Check if processing queue is empty.

Returns
true There are no files left to process

The documentation for this class was generated from the following files: